Follow

RT @izzyz
In JavaScript, the hardest function behaviors to memorize are array shift and unshift.

A mnemonic that just changed my life is to instead think of them without the letter ‘f’.

1 <- [2, 3, 4] shift
1 -> [2, 3, 4] unshift

Sign in to participate in the conversation
Mastodon

a Schelling point for those who seek one