Cheapest Item: Exercise
Explore how to determine the cheapest item from a shopping cart using RamdaJS. Learn to apply point-free style and functional programming patterns to write clean, concise JavaScript code without explicit arguments.
We'll cover the following...
We'll cover the following...
Given a cart, return the cheapest item’s name.
Usage
const cheapestItem = getCheapestItem(cart); // 'apple'
Your solution must be point-free.