alonronin 2903 days ago. link 2 points ▲ ▼your code is nice and elegant, however lodash treats more use cases, and performance proved (not just saying 'fast' at the title) i'd use lodash in my project, but i like yours also.