* Removes all white space at the begining and end of a string. * * @param {String} str String to trim. * @return {String} Returns string without leading and following white space characters.
(str)
| 932 | * @return {String} Returns string without leading and following white space characters. |
| 933 | */ |
| 934 | function trim(str) |
| 935 | { |
| 936 | return str.replace(/^\s+|\s+$/g, ''); |
| 937 | }; |
| 938 | |
| 939 | /** |
| 940 | * Unindents a block of text by the lowest common indent amount. |
no outgoing calls
no test coverage detected