DEV Community

Discussion on: 13 useful JavaScript array tips and tricks you should know

Collapse
 
perpetualwar profile image
Srđan Međo

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

Collapse
 
gabrielpinheiro profile image
Gabriel Pinheiro

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

let firstValues = new Set(numOne);

Thanks for pointing that up