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 88
See:
Returns:
true if contains the specified string
Type
boolean

isBoolean() → {boolean}

add a isBoolean fn to the string object
Source:
string.js, line 73
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 63
Returns:
true if string contains only digits
Type
boolean

toHex() → {string}

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

trim() → {string}

removes whitespace from both ends of a string. Whitespace in this context is all the whitespace characters (space, tab, no-break space, etc.) and all the line terminator characters (LF, CR, etc.).
Source:
string.js, line 26
Returns:
the string stripped of whitespace from both ends.
Type
string

trimLeft() → {string}

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

trimRight() → {string}

returns the string stripped of whitespace from the right.
Source:
string.js, line 52
Returns:
trimmed string
Type
string
Copyright © 2011 - 2017, Olivier Biot, Jason Oster, Aaron McLeod
Documentation generated by JSDoc 3.4.0 on 2017-02-28T11:37:40+08:00 using the DocStrap template modified by codename-.