DEV Community 👩‍💻👨‍💻

Discussion on: Javascript Array.push is 945x faster than Array.concat 🤯🤔

Collapse
juslintek profile image
Linas

array[] = $value; is faster then push. 😊 And

$array = array_merge(... $arrayOfArrays); is faster then merge per item inside loop.