I'm not sure this is an efficient solution, the problem is that you are iterating through potentially the entire list twice. Lets say 90% of a million user list uses JavaScript, but only 10% of those are from Europe. You will iterate through 900K people twice with each filter. Or instead you could add an && statement there and knock it all out in one go.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I'm not sure this is an efficient solution, the problem is that you are iterating through potentially the entire list twice. Lets say 90% of a million user list uses JavaScript, but only 10% of those are from Europe. You will iterate through 900K people twice with each filter. Or instead you could add an && statement there and knock it all out in one go.
Agree, should be immutable function
we have also find() now
not nice