max.js 249 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 var arrMax = require('../array/max'); var values = require('./values'); /** * Returns maximum value inside object. */ function max(obj, compareFn) { return arrMax(values(obj), compareFn); } module.exports = max;