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) 411 B
var filter = require('./filter'); var makeIterator = require('../function/makeIterator_'); /** * Inverse or collection/filter */ function reject(list, iterator, thisObj) { iterator = makeIterator(iterator, thisObj); return filter(list, function(value, index, list) { return !iterator(value, index, list); }, thisObj); } module.exports = reject;