JavaScript: Learn to Filter Array
In my previous blog I wrote about JavaScript array map
method. In this article, I will write about filter
method.
filter
is a non-mutating method. Filter does not affect (modify) the original array if we use this method correctly.