Y
Hacker News
new
|
ask
|
show
|
jobs
by
teechap
4019 days ago
I think the only way .indexOf could be faster than linear is if the array is sorted...
1 comments
Demiurge
4019 days ago
I got it, it didn't even occur to me the array would be unsorted.
link