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

16 lines (12 loc) 378 B
define(['./filter', '../function/makeIterator_'], function (filter, makeIterator) { /** * Object reject */ function reject(obj, callback, thisObj) { callback = makeIterator(callback, thisObj); return filter(obj, function(value, index, obj) { return !callback(value, index, obj); }, thisObj); } return reject; });