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
I have found
~~
operators in stackoverflowParameter
_
is literaly doing nothing, it's naming convention for parameters that are not used in the function.https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys
Can I ask you something too? I'm a little confused. I thought
Object.keys()
changed an object to an array with its keys, but actually it doesn't, instead it just checks/sees the object's keys. Is that right?In this solution, the key is used to check the array provided as an argument using the syntax array[key], they're simply checking an array not provided by the callback.