Javascript – Fast way to fill array with Objects
I have to fill an array with a lot of objects. My current Implementation is this: let useVertices = []; const len = this.indices.length; for(let i = 0; i < len; i++){ let index = this.indices[i]*3; useVertices.push(new THREE.Vector3( this.vertices[index], this.vertices[index+1],…