3 ms·
The good old question about sacrificing performance for readability. Anyway these days filter is not so bad. [1] https://jsperf.com/array-uniq-filter https://j
by drinchev 9y ago
The good old question about sacrificing performance for readability. Anyway these days filter is not so bad.
[1] https://jsperf.com/array-uniq-filter https://jsperf.com/array-uniq-filter
- Veedrac 9y agoAnd insertion sort is not so bad with 20 elements. It doesn't take much for it to start falling over, though. [1]: https://jsperf.com/array-unique-filter-2/1 https://jsperf.com/array-unique-filter-2/1