Shortest Article on Javascript Filter Method
The filter method got a single function and inside it, it got a single parameter( this parameter contains all the items from the array ).
The filter method always returns a new Array and it doesn't modify the original array.
Check the below code snip...
sanjeeb.hashnode.dev1 min read