How to remember Array#shift vs Array#unshift
It’s a bathroom thing.
Bathroom talk
When you shit, things go down.
array = [1, 2]
array.shift(3)
array # [1, 2, 3]
When you unshit, things go up.
array = [1, 2]
array.unshift(3)
array # [3, 1, 2]
Next time you’re having trouble remembering these, just drop the f
.
I hope this doesn’t harm any chance of future employment.