Test name | Executions per second |
---|---|
Array | 60095.6 Ops/sec |
Obj | 68091.1 Ops/sec |
window.data = new Array(1000).fill(0).map(() => [Math.random(), Math.random(), Math.random()]);
data.map(([c,b,a]) => [a, b, c]).map(([,b]) => b);
data.map(([c,b,a]) => ({a,b,c})).map(({b}) => b);