Search Docs
replaceAll
将 str 中所有出现的 searchValue 替换为 replaceValue。
str
searchValue
replaceValue
import { replaceAll } from 'funtool' replaceAll('hello world', 'world', 'everyone'); // 'hello everyone'
function replaceAll(str: string, target: string, replacement: string): string
string