Cheapest Item: Exercise

Write a point-free function to return a cart's cheapest item.

Given a cart, return the cheapest item’s name.

Usage

const cheapestItem = getCheapestItem(cart); // 'apple'

Your solution must be point-free.

Press + to interact
index.js
cart.js
import {} from 'ramda';
import cart from './cart';
const getCheapestItem = () => {};