DEV Community

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

Collapse
 
harryjubb profile image
Harry Jubb

Looks like my image didn't upload, I'm getting:

For n = 100000

includes: 45.72607421875 ms
has: 61.42919921875 ms

For n = 1000000

includes: 367.927978515625 ms
has: 707.369140625 ms