Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4780.0 Safari/537.36
Chrome 99
Linux
Desktop
3 years ago
Test name Executions per second
concat() + spread operator 5204251.5 Ops/sec
Array.flat() 735748.1 Ops/sec
Tests:
  • concat() + spread operator

    AخA
     
    var params = [[ 1, 2 ], [ "hello", true, 7 ]];
    var other = [].concat(...params);
  • Array.flat()

     
    var params = [[1, 2, params], [ "hello", true, 7 ]];
    var other = params.flat();