SyntaxFix
Write A Post
Hire A Developer
Questions
You can instantiate an array of "object type" in one line like this (just replace new Object() with your object):
var elements = 1000; var MyArray = Array.apply(null, Array(elements)).map(function () { return new Object(); });