Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0
Firefox 58
Ubuntu
Other
6 years ago
Test name Executions per second
Array.prototype.concat 2691297.0 Ops/sec
spread operator 3588180.5 Ops/sec
jQuery merge 3697514.5 Ops/sec
Tests:
  • Array.prototype.concat

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

     
    var params = [ "hello", true, 7 ]
    var other = [ 1, 2, ...params ]
  • jQuery merge

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