object vs array push

Edit on GitHub

Setup

Tests

  • object

    var object = {};
    object.l = "xd";
  • array push

    var array = [];
    array.push("xd");