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

17 lines (12 loc) 392 B
var filter = require('./filter'); var makeIterator = require('../function/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); } module.exports = reject;