React TL;DR – a human filter for most useful tech content.

All posts

Map, Filter, Reduce: The Holy Trinity of Array Methods

  • Most frequently used things in all programming languages.
  • “In Javascript, if you are using a For…loop with an array, then you are probably doing something wrong”
  • We have Mutating and Non-Mutating Methods
  • Mutating: splice push/pop and shift/unshift,
  • Non-Mutating: map filter and reduce,
  • In the article, you have examples of all single methods and also method chaining.