Test name | Executions per second |
---|---|
spread | 38713.9 Ops/sec |
Array.from | 38660.9 Ops/sec |
var arr = [];
for (var i = 0; i < 10000; i++) {
arr.push(Math.floor(Math.random() * 1000));
}
const ss = new Set(arr)
arr = [ss]
arr = Array.from(new Set(arr))