Literal vs Slice

Edit on GitHub

Is literal form of Array faster then slice

Setup

var arr = [];

Tests

  • Literal

    var a = [];
  • Slice

    var a = arr.slice();