JSFiddle - React, Tailwind, and code Playground
JavaScript
var items = [];
var getSomething = function(quantity) {
for(var i = 0; i < quantity; i++) {
items[i] = {
x: {
a: "fw",
b: "2"
},
y: {
c: "324324",
d: function() {return 32}
},
location: {
x: 500,
y: 600
}
}
}
};
getSomething(8);
console.log(items[0]);