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.
To be honest when I wrote this I'd forgotten about the built-in function as I so rarely use it, but I would probably choose a different argument name with that in mind as I agree it's best to avoid shadowing built-ins.
If I wrote it now I'd probably go for
isTrue
as parameter name but not sure it's as clear...This comment is hidden because it contains spoiler information about the solution
Thanks! To be honest I think your solution will be more efficient, but when I was writing this I was probably in a functional programming mood :-)
The description needs more detail on the expected output.
Nope. Not sure why I included them to be honest, as I think the code is more readable without :-)
Thanks :-)
Glad someone else is getting this too! I get the same, whether looping over the added object using Object.keys, or using a for loop.
Am I missing something obvious?