Skip to main content
Module

x/core_fn/uncurry/mod.ts>match

A collection of built-in object method and property as currying function
Latest
variable match
import { match } from "https://deno.land/x/core_fn@v1.0.0-beta.16/uncurry/mod.ts";

Matches a string with a regular expression, and returns an array containing the results of that search.

Examples

Example 1

match(/xyz/, 'vwxyz') // ['xyz']

type

(matcher: string | RegExp, val: string) => RegExpMatchArray | null