Skip to main content
Module

x/core_fn/mod.ts>global

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

Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only.

Examples

Example 1

global(/test/g) // true
global(/test/) // false

type

(regExp: RegExp) => unknown