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.
Thanks eventualy realised my mistakes, 1 being that i was only checking if the value was in the ofther array excluding the fact of duplicates and the other that if both arrays were empty i returned false.
Thanks for the help ^^
That's an edge case and your first assumption is wrong. You're also missing some other part of the instructions, this one:
Think about what that means.
What would you return for this input?
a = [4] b = [2, 2, 2]
Sorry I'm being a little vague, but I'm giving you hints so you can solve the kata yourself.
This comment is hidden because it contains spoiler information about the solution
You're confused by this:
What should the expected value be if both are empty? Use
console.log
to print the input values.This comment is hidden because it contains spoiler information about the solution