Namespace: string

me.utils. string

a collection of string utility functions
Source:
string.js, line 9

Methods

<static> isBoolean(string) → {Boolean}

returns true if the given string contains a true or false
Parameters:
Name Type Description
string String the string to be tested
Source:
string.js, line 58
Returns:
true if the string is either true or false
Type
Boolean

<static> isBoolean(string) → {Boolean}

returns true if the given string contains a numeric value
Parameters:
Name Type Description
string String the string to be tested
Source:
string.js, line 45
Returns:
true if string contains only digits
Type
Boolean

<static> toHex(string) → {String}

convert a string to the corresponding hexadecimal value
Parameters:
Name Type Description
string String the string to be converted
Source:
string.js, line 72
Returns:
Type
String

<static> trimLeft(string) → {string}

returns the string stripped of whitespace from the left.
Parameters:
Name Type Description
string String the string to be trimmed
Source:
string.js, line 19
Returns:
trimmed string
Type
string

<static> trimRight(string) → {string}

returns the string stripped of whitespace from the right.
Parameters:
Name Type Description
string String the string to be trimmed
Source:
string.js, line 32
Returns:
trimmed string
Type
string