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.
i enjoyed this kata so much ,i guess my solution is the worst on earth but it worked!
I have found
~~
operators in stackoverflowParameter
_
is literaly doing nothing, it's naming convention for parameters that are not used in the function.can you explain plz what is this ~~ and _ doing ?
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.
sorry guys stupid question , can someone explain how the filter method working here? the array that is passed to the filter method here is only [keys] , how filter compare values that are not from the array that i passed into and return the keys in the end?