I\'m trying to use ES6 arrow function with .filter to return adults (Jack & Jill). It appears I cannot use an if statement.
.filter
What do I need to know
return arrayname.filter((rec) => rec.age >18) write this one in method and call the method