Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Protip:
https://github.com/Codewars/codewars-runner-cli/blob/master/documentation/environments/node.md
And smart programmers (like me) will have a stash of snippets to copy and paste for these kind of regularly emerging scenarios anyway :P, so it's really the same thing.
Meh, I could have implemented it myself, but why do that when a library is provided? It's not like the problem was asking for an implementation of binary search.