Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
spicebox
· 3y ago · 0 comments
Spreading an array requires looping over all the array elements which is O(n) compared to something like Array.push() which is just 0(1), although spreading has other benefits like copying rather than mutating
Comments
No comments yet.
Better HN