Native String vs. 1.1.0 Full+Lite

A String object in JavaScript represents textual data such as words and sentences. String objects are rarely created explicitly with the new operator because they are usually created implicitly by assigning a string literal to a variable. A complete list of strings' methods can be found at MSDN or MDN

The NoGray JS Library extends the native String object with the methods listed below.

Methods

Function String.each (func, bind, args) vs. 1.1.0 FULL ONLY
This function works the same way as Array.each except it iterate over the string characters.
Function String.r_each (func, bind, args) vs. 1.1.0 FULL ONLY
Same as String.each but in reverse direction
Function String.reverse () vs. 1.1.0 FULL ONLY
Reverse the string characters.
Function String.cap_first_letter () vs. 1.1.0 Full+Lite
Capitalize the first letter of the string.
Function String.cap_first () vs. 1.1.0 FULL ONLY
Capitalize the first letter of each word in the string.
Function String.reverse_caps () vs. 1.1.0 FULL ONLY
Reverse the string capitlization.
Function String.css_camel_case () vs. 1.1.0 Full+Lite
Creates a CSS camel case capitlization for the string.
Function String.css_hyphenate () vs. 1.1.0 Full+Lite
Create a CSS hyphenated string.
Function String.shuffle () vs. 1.1.0 FULL ONLY
Shuffle the characters of the string.
Function String.substr_count (search, offset, length) vs. 1.1.0 FULL ONLY
Return the number of sub strings in the string.
Function String.is_upper () vs. 1.1.0 FULL ONLY
Check if all characters in the string are upper case.
Function String.is_lower () vs. 1.1.0 FULL ONLY
Check if all characters in the string are lower case.
Function String.is_numeric () vs. 1.1.0 Full+Lite
Check if the string is numeric. This function does not support thousand seprators or special characters except for a dot as a decimal seprator.
Function String.to_int () vs. 1.1.0 Full+Lite
Parse an integer out of the string.
Function String.to_float () vs. 1.1.0 Full+Lite
Parse a float out of the string.
Function String.to_query () vs. 1.1.0 FULL ONLY
Create a URL query formatted string.
Function String.to_json () vs. 1.1.0 FULL ONLY
Create a JSON formatted string.
Function String.strip_tags () vs. 1.1.0 FULL ONLY
Strip all HTML tags out of the string.
Function String.trim () vs. 1.1.0 Full+Lite
Remove all white spaces from both sides of the string.
Function String.ltrim () vs. 1.1.0 FULL ONLY
Remove all white spaces from left side of the string.
Function String.rtrim () vs. 1.1.0 FULL ONLY
Remove all white spaces from right side of the string.
Function String.get_tags () vs. 1.1.0 FULL ONLY
Reterive the given tag from a string. This function cannot return nested matching tags.
Function String.eval_script () vs. 1.1.0 FULL ONLY
Evaluate all script tags found in the string.
Function String.shorten (length, After) vs. 1.1.0 FULL ONLY
Make a string shorter and add the after string if the original string was cut.
Function String.escape_regex () vs. 1.1.0 FULL ONLY
Escape special characters so the string can be used in a regular expression.