max.js 234 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 define(['../array/max', './values'], function(arrMax, values) { /** * Returns maximum value inside object. */ function max(obj, compareFn) { return arrMax(values(obj), compareFn); } return max; });