Skip to main content
Module

x/core_fn/regexp/sticky.ts>sticky

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

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

Examples

Example 1

sticky(/test/y) // true
sticky(/test/) // false

type

(regExp: RegExp) => unknown