Skip to main content
Module

x/rambda/immutable.d.ts>match

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

Curried version of String.prototype.match which returns empty array, when there is no match.

Parameters

regExpression: RegExp
str: string

Returns

readonly string[]

Parameters

regExpression: RegExp

Returns

(str: string) => readonly string[]