Search Docs
removeBefore
从 input 字符串中移除 target 之前的所有字符。
input
target
import { removeBefore } from 'funtool'; removeBefore('foo-bar', '-') // ✅ 'bar' removeBefore('hello', 3) // ✅ 'lo'
function removeBefore(input: string, target: string | number): string
string
string | number