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.
Oddly enough I had to add a .find polyfill, even though it is supposed to run through babel/support es6
Oh yahhh takes 2ms longer than my solution lol
Oddly enough I had to add a .find polyfill, even though it is supposed to run through babel/support es6
Nice. Never thought of instantiating another variable within one loop.
"Important: You should not slice on arguments because it prevents optimizations in JavaScript engines (V8 for example). Instead, try constructing a new array by iterating through the arguments object."
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments
This is bad practice for other reasons as well.
was this submitted before the kata required negatives to represented by the value for a positive with a negative sign? If not what makes this function return the binary in the non-traditional way?
Nice. I didn't know that $ meant end.
Question for all those who considered this best practice, isn't the goal to make readable code? This seems awfully tricky + IMO it isn't immediately clear what this does (although I'm fairly new to programming).
According to other comments it may be faster than other methods, so that may be a good reason for it in... production code?
Any clarification is appreciated. I'm often baffled by some of the solutions, really wondering how long it takes to be able to come up with them.
Nice! I tried doing it this way but couldn't work it out.