3 ms·
This is only true if you're doing a ton of array searching. Using an Object as a dictionary in JS has a lot of overhead so it's going to be much slower than usi
by kevingadd 14y ago
This is only true if you're doing a ton of array searching. Using an Object as a dictionary in JS has a lot of overhead so it's going to be much slower than using a dense array in many cases.