stevendesu / jsindex

1 stars 0 forks source link

Avoid iterative calls to Array.prototype.push #17

Open stevendesu opened 5 years ago

stevendesu commented 5 years ago

Honestly we should avoid iterative calls to anything. When combining arrays, though, it's better to use concat than to iterate over the second array and call .push() on the first.