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
This comment is hidden because it contains spoiler information about the solution
You're not handling nested objects correctly.
This comment is hidden because it contains spoiler information about the solution
I was just going to point out - good thinking Henry!
OP solved it, closing
OP solved it, closing
OP solved it, closing
Nice! I used a reduce. But this is even more efficient. well done!
it asks just what it asks. it does not ask to foresee absence of the "needle"
You can use console.log(obj)
Quite simply done
I think this is a good strategy but wouldnt it be better to cater for a case when an array that doesnt contain needle
Can I see all possible test cases anywhere? I don't understand the kata's description. I tried to see an object as argument in the console, but I saw arrays too. What is that??? I see in the description => strCount (takes an object as argument)... ><
The semantics of
like
andremove
makes no sense:title
is not unique so there can be multiple articles that match the same criteria.articleId
that keeps shifting is insane as well. Does the kata author even know basic relational data concepts?Loading more items...