External: String

String

The built in String Object
Source:
string.js, line 7
See:

Methods

includes(searchString, position) → {boolean}

determines whether one string may be found within another string.
Parameters:
Name Type Argument Default Description
searchString string A string to be searched for within this string.
position number <optional>
0 The position in this string at which to begin searching for the given string.
Source:
string.js, line 70
See:
Returns:
true if contains the specified string
Type
boolean

isBoolean() → {boolean}

add a isBoolean fn to the string object
Source:
string.js, line 55
Returns:
true if the string is either true or false
Type
boolean

isNumeric() → {boolean}

add isNumeric fn to the string object
Source:
string.js, line 45
Returns:
true if string contains only digits
Type
boolean

toHex() → {string}

convert the string to hex value
Source:
string.js, line 88
Returns:
Type
string

trimLeft() → {string}

returns the string stripped of whitespace from the left.
Source:
string.js, line 22
Returns:
trimmed string
Type
string

trimRight() → {string}

returns the string stripped of whitespace from the right.
Source:
string.js, line 34
Returns:
trimmed string
Type
string