UNPKG

tastypie

Version:

Tastypie is a webservice API framework for Node.js based on Django's Tastypie Framework. It provides a convenient, yet powerful and highly customizable, abstraction for creating REST-style interfaces

13 lines (9 loc) 249 B
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;