Latest
function replace
import { replace } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/string.js";

Replaces matches for pattern in string with replacement.

Note: This method is based on String#replace.

Examples

_.replace('Hi Fred', 'Fred', 'Barney'); // => 'Hi Barney'