thejsway / thejsway

The JavaScript Way book

Home Page:https://thejsway.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chapter07.md: is there a reason why .shift() is not mentioned?

vsemozhetbyt opened this issue · comments

It seems to be a simple and useful method, easier than .splice() for the first element removing, and somehow lacking for complete symmetry with .push(), .unshift() and .pop().

No real reason, this chapter evolved to meet the needs of other parts of the book. Presenting too many methods could become confusing for the reader, but shift() is a good candidate.

Thanks for the idea!