Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
lkschubert8
6y ago
0 comments
Save
Share
For me the worst is slice/splice.
0 comments
2 comments · 1 top-level
top
newest
oldest
Accacin
6y ago
· 1 in thread
Kind of stupid, but I imagine the 'p' in 'splice' being an axe that chops the array :D Works for me...
nkozyra
6y ago
I think OP was saying slice returns a mutated copy while splice mutates in place.
j
/
k
navigate · click thread line to collapse