Skip to main content
Module

x/core_fn/mod.ts

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

Variables

Returns the character at the specified index.

Expose the [[Description]] internal slot of a symbol directly.

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

Checks if a string ends with the provided substring.

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

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:

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

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

Checks if value is in collection.

Returns read/write integer property of RegExp instances that specifies the index at which to start the next match.

Returns length property.

Calls a defined callback function on each element of an array, and returns an array that contains the results.

Matches a string with a regular expression, and returns an array containing the results of that search.

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

Returns a String value that is made from count copies appended together. If count is 0, the empty string is returned.

Replaces matches for from in string or RegExp with to.

Returns a section of a value.

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.

Checks if a string starts with the provided substring.

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

whether a given string matches a given regular expression.

Return lowercase string.

Return uppercase string.

Removes whitespace from both ends of the string.

Removes the trailing white space and line terminator characters from a string.

Removes space from left ends of the string.

Removes space from right ends of the string.

Removes the leading white space and line terminator characters from a string.

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