How to Filter a List of Numbers in a JavaScript Array Using an Arrow Function

The filter function in JavaScript is a powerful functional programming component. And it can also be a helpful tool when combined with JavaScript arrow functions. An example is below: