-
-
Save ahmadmilzam/aaa1aac5d0d20ac47e40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Remove whitespace from a string | |
* @private | |
* @param {String} string | |
* @returns {String} | |
*/ | |
var trim = function ( string ) { | |
return string.replace(/^\s+|\s+$/g, ''); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment