DEV Community

Discussion on: 15 must-know JavaScript array methods in 2020

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

I think everyone know .push(), but recently I need .shift().

I think I might not need double-ended dequeue, yet.

The most important things you should emphasize, IMO, are,

  • Mutating / Non-mutating
  • Returns Array / returns something else

Some other should-know, I think, are

  • Array constructor
  • Array.from
Collapse
 
ibrahima92 profile image
Ibrahima Ndaw

Great feedback. I will do a post on it later. Thanks again :).