These are the JS Array methods that should be your go-to tools for everything. They're the building blocks of some extremely powerful combinations of algorithmic logic.
[].reduce: The king of the array methods; nearly all array methods can be derived fromreduce. Learn it and get really good at using it.[].map[].filter[].includes[].every[].some[].slice
These are the Array methods that are fine to use, and at one point were used all the time, but they have since been made irrelevant by new JS language features.
[].indexOfUseincludesinstead[].concatUse the spread operator instead
These the JS Array methods that should be avoided and ideally removed from your vocabulary. They either encourage imperative code or, even worse, they mutate state.
[].forEach: Imperative code enabler[].pop: Mutates[].push: Mutates[].splice: Mutates[].shift: Mutates[].unshift: Mutates