dodo / node-slug

slugifies even utf-8 chars!
MIT License
1.08k stars 92 forks source link

Removed forEach function call #37

Closed prozacgod closed 9 years ago

prozacgod commented 9 years ago

Before I modified code, 2 Tests failed for me, locally

After I modified the code the same test results are received. I don't know enough about Unicode to fix the failed tests.

This no longer gives errors when parsed and ran in IE8 may or may not work on IE < 8

I believe that in these use cases .hasOwnProperty check can be skipped, but it was part of a copy/paste fix and it passes the tests so I left it.