Skip to main content
Module

x/core_fn/uncurry/mod.ts>exec

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

Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.

Examples

Example 1

exec(/^test/, 'test-data') // ['test']

type

(regExp: RegExp, val: string) => unknown