Should be well commented/documented. I hadn't realized _.words filters out non alphanumeric characters by default, so the definition of 'word' is simplified to be /\s+/ delimited.
I also tried to keep within well-supported string and array functions. If I added any which reasonably older browsers don't support, please yell.
Should be well commented/documented. I hadn't realized
_.words
filters out non alphanumeric characters by default, so the definition of 'word' is simplified to be/\s+/
delimited.I also tried to keep within well-supported string and array functions. If I added any which reasonably older browsers don't support, please yell.