Skip to content
On this page

replaceAll

字符串替换

引入方式

ESM

javascript
import { replaceAll } from "tool-assistant;

示例

javascript
// 引入 replaceAll 函数
import { replaceAll } from "tool-assistant";

// 示例使用
const originalString = "Hello, World! Hello, World!";
const replacedString = replaceAll(originalString, "Hello", "Hi");
console.log(replacedString);

Released under the MIT License.