top | item 39901413

(no title)

rrishi | 1 year ago

> Word "shift" is shorter than the word "unshift". Therefore shift() makes the array shorter.

> Word "unshift" is longer than the word "shift". Therefore unshift() makes the array longer.

This is quite useful as I too couldn't remember which is which. Thanks for sharing!

discuss

order

No comments yet.