JavaScript: Filtering data
Storing data in arrays is a pretty common technique throughout various programming languages, and it’s very straight forward. Until you get to reading them, sorting, filtering and mixing them. A lot of times you have more complexity in your data and filtering them is a very usual task.
Almost every toolkit has some functional approaches to make this easier and the latest JavaScript versions also implement some of them natively. Here I will show two use cases for filtering an array of objects, different approaches and their consequences.
(more…)
JavaScript addicts