Module

x/rambda/rambda.js>match

Faster and smaller alternative to Ramda
Go to Latest
function match
import { match } from "https://dotland.deno.dev/x/rambda@v9.2.0/rambda.js";

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

Parameters

regExpression: RegExp
str: string

Returns

string[]

Parameters

regExpression: RegExp

Returns

(str: string) => string[]