Built-In Namespace String
| Method Attributes | Method Name and Description |
|---|---|
|
contains(word)
add a contains fn to the string object
|
|
|
add a isBoolean fn to the string object
|
|
|
add isNumeric fn to the string object
|
|
|
toHex()
convert the string to hex value
|
|
|
trim()
add trim fn to the string object
|
Method Detail
{Boolean}
contains(word)
add a contains fn to the string object
Defined in: <build/melonJS-0.9.3.js>.
Defined in: <build/melonJS-0.9.3.js>.
- Parameters:
- word
- Returns:
- {Boolean}
{Boolean}
isBoolean()
add a isBoolean fn to the string object
Defined in: <build/melonJS-0.9.3.js>.
Defined in: <build/melonJS-0.9.3.js>.
- Returns:
- {Boolean} true if the string is either true or false
{Boolean}
isNumeric()
add isNumeric fn to the string object
Defined in: <build/melonJS-0.9.3.js>.
Defined in: <build/melonJS-0.9.3.js>.
- Returns:
- {Boolean} true if string contains only digits
{String}
toHex()
convert the string to hex value
Defined in: <build/melonJS-0.9.3.js>.
Defined in: <build/melonJS-0.9.3.js>.
- Returns:
- {String}
{String}
trim()
add trim fn to the string object
Defined in: <build/melonJS-0.9.3.js>.
Defined in: <build/melonJS-0.9.3.js>.
- Returns:
- {String} trimmed string