Javascript ES6 - Write Higher Order Arrow Functions