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.
This comment is hidden because it contains spoiler information about the solution
Not an issue, this is a question
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I remember what functions exist in many languages, then do a search to find out what that particular language calls them. Most languages have a similar set of basic functions (except those languages that don't support higher-order functions cough), and that set really isn't very big. Most of what ZozoFouchtra lists exist under some alias in all languages that can handle them. For example, I may search for “js fold” (knowing
foldl
andfoldr
from Haskell), which takes me directly to MDN's page aboutArray.prototype.reduce()
. I don't use JS much, but when I do, this is my workflow..forEach()
,.every()
,.filter()
,.map()
,.reduce()
and.reduceRight()
are (useful) methods ofArray
since JavaScript 1.6.You'll find many occasions to use them in Codewars. ;)
see more @ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array