Search Docs
removeAt
从 input 字符串中移除指定索引位置的字符。
input
import { removeAt } from 'funtool/string' removeAt('hello', 1) // ✅ 'hllo' removeAt('abc-def', '-') // ✅ 'abcdef'
function removeAt(input: string, target: string | number): string
string
target
string | number