re: 13 useful JavaScript array tips and tricks you should know VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Great article! I love how you mentioned the arr.length = 0;, I've seen obj.arr = []; so many times, messing up references is just a matter of time ...
 

You spread Set into an array, so array won't have has method on it. Small bug on your side.

 

Oh you're right, first line should have been:

let firstValues = new Set(numOne);

Thanks for pointing that up

code of conduct - report abuse