Skip to main content
Module

x/core_fn/regexp/mod.ts>flags

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

Returns a string indicating the flags of the regular expression in question. This field is read-only. The characters in this string are sequenced and concatenated in the following order:

Examples

Example 1

flags(/test/s) // true
flags(/test/) // false

type

(regExp: RegExp) => unknown