new String()
Native string prototype.
- Source:
Methods
-
capitalize() → {String}
-
Capitalizes the first character in a string.
- Source:
Returns:
Capitalized string.
- Type
- String
-
format(arguments) → {String}
-
Replaces numbered placeholders in a string with arguments provided. Placeholders are of the form "{#}" where "#" is the zero-based index of the argument to substitute.
Parameters:
Name Type Argument Description arguments
Mixed <repeatable>
Any number of values referenced by placeholders in this string.
- Source:
Returns:
Formatted string.
- Type
- String
-
parseUrl() → {Object}
-
Break URL into components.
- Source:
Returns:
Index of URL components.
- Type
- Object
-
toBoolean(prop) → {Array}
-
Detects if a string === 'true'. Useful for working with attribute or query string values.
Parameters:
Name Type Description prop
String Name of property value to retrieve from each object.
- Source:
Returns:
List of property values.
- Type
- Array