3 ms·
Array.splice would probably be better (specify adding to the end of the array and deleting 0 elements); it modifies in-place like push.
by Izkata 7y ago
Array.splice would probably be better (specify adding to the end of the array and deleting 0 elements); it modifies in-place like push.