Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/mod.ts>match

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

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[]