JSFiddle - React, Tailwind, and code Playground

by radu

HTML

<p><p>

JavaScript

var a = [1, 2],
    obj = { 0 : '', 1 : ''},
    b = [obj[0], obj[1]];

c = a.concat(obj);

console.log(c.length);

d = a.concat(b);

console.log(d.length);