min.js 247 B

123456789101112
  1. var arrMin = require('../array/min');
  2. var values = require('./values');
  3. /**
  4. * Returns minimum value inside object.
  5. */
  6. function min(obj, iterator) {
  7. return arrMin(values(obj), iterator);
  8. }
  9. module.exports = min;