Created
April 18, 2013 22:57
-
-
Save lunaroja/5416887 to your computer and use it in GitHub Desktop.
quickly grab and array and log out a cleaned version of the text for urls or other sorts
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
for (var i = 0; i < copy.length; i++) { | |
console.log(copy[i].toLowerCase().replace(/[^\w\s]/gi, '').replace(/\s+/g, '-')); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment