Filtering an array on ES6

It’s been a while since ES6 was released, and now in 2017. Most of it’s features are widely supported on modern browsers.

Since most of you are already familiar (or not) with filtering arrays. Here is a refresher of how to filter arrays with arrow functions.

Disclaimer: I’m assuming a good level of familiarity with ES6. If you need it, here is an awesome post about arrow functions . This is a question I had a few months ago and I decided to make a post about the answer.