Skip to main content
Module

x/rambda/immutable.d.ts>replace

Faster and smaller alternative to Ramda
Go to Latest
function replace
import { replace } from "https://deno.land/x/rambda@v7.0.1/immutable.d.ts";

It replaces strOrRegex found in str with replacer.

Parameters

strOrRegex: RegExp | string
replacer: string
str: string

Returns

string

Parameters

strOrRegex: RegExp | string
replacer: string

Returns

(str: string) => string

Parameters

strOrRegex: RegExp | string

Returns

(replacer: string) => (str: string) => string