Skip to main content
Module

x/lodash_es/mod.ts>replace

lodash for deno use
Latest
function replace
import { replace } from "https://deno.land/x/lodash_es@v0.0.2/mod.ts";

Replaces matches for pattern in string with replacement.

Note: This method is based on String#replace.

Examples

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