min.js

/**
 * Returns the smallest of the 2 arguments provided
 *
 * @function min
 * @desc Returns the smallest of the 2 arguments provided
 * @since v1.0.4
 * @param {*} a
 * @param {*} b
 * @return {*}
 **/
import curry from './curry'

export default curry(function min (a, b) {
  return b < a ? b : a
})