Module

x/lodash_es/src/string.js

lodash for deno use
Latest
import * as mod from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/string.js";

Variables

Converts string to camel case.

Converts string to kebab case.

Converts string, as space separated words, to lower case.

Converts the first character of string to lower case.

Converts string to snake case.

Converts string to start case.

By default, the template delimiters used by lodash are like those in embedded Ruby (ERB) as well as ES2015 template strings. Change the following template settings to use alternative delimiters.

Converts string, as space separated words, to upper case.

Converts the first character of string to upper case.

Functions

Converts the first character of string to upper case and the remaining to lower case.

Deburrs string by converting Latin-1 Supplement and Latin Extended-A letters to basic Latin letters and removing combining diacritical marks.

Checks if string ends with the given target string.

Converts the characters "&", "<", ">", '"', and "'" in string to their corresponding HTML entities.

Escapes the RegExp special characters "^", "$", "", ".", "*", "+", "?", "(", ")", "[", "]", "{", "}", and "|" in string.

Pads string on the left and right sides if it's shorter than length. Padding characters are truncated if they can't be evenly divided by length.

Pads string on the right side if it's shorter than length. Padding characters are truncated if they exceed length.

Pads string on the left side if it's shorter than length. Padding characters are truncated if they exceed length.

Converts string to an integer of the specified radix. If radix is undefined or 0, a radix of 10 is used unless value is a hexadecimal, in which case a radix of 16 is used.

Repeats the given string n times.

Replaces matches for pattern in string with replacement.

Splits string by separator.

Checks if string starts with the given target string.

Creates a compiled template function that can interpolate data properties in "interpolate" delimiters, HTML-escape interpolated data properties in "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data properties may be accessed as free variables in the template. If a setting object is given, it takes precedence over _.templateSettings values.

Converts string, as a whole, to lower case just like String#toLowerCase.

Converts string, as a whole, to upper case just like String#toUpperCase.

Removes leading and trailing whitespace or specified characters from string.

Removes trailing whitespace or specified characters from string.

Removes leading whitespace or specified characters from string.

Truncates string if it's longer than the given maximum string length. The last characters of the truncated string are replaced with the omission string which defaults to "...".

The inverse of _.escape; this method converts the HTML entities &amp;, &lt;, &gt;, &quot;, and &#39; in string to their corresponding characters.

Splits string into an array of its words.