Skip to main content
Module

x/core_fn/mod.ts>source

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

Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal.

Examples

Example 1

source(/test/s) // true
source(/test/) // false

type

(regExp: RegExp) => unknown