Search Docs
toLowerAt
将 input 字符串中指定 index 位置的字符转换为小写。
input
index
import { toLowerAt } from 'funtool/string' toLowerAt('Hello', 0) // ✅ 'hello' toLowerAt('Foo-Bar', 'B') // ✅ 'Foo-bar'
function toLowerAt(input: string, target: string | number): string
string
target
string | number