DEV Community

Discussion on: Using Array.prototype.includes() vs Set.prototype.has() to filter arrays

Collapse
 
tgrashawatre profile image
Timothy Grashaw

Hey just wondering, do you think there is there a time associated with converting an array to a set, and if so is it less than the time we are saving by running has()?

Collapse
 
noon3 profile image
Rami Dridi

did you get to test this? thanks!