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

14 lines (11 loc) 251 B
define(['./some'], function (some) { /** * Check if object contains value */ function contains(obj, needle) { return some(obj, function(val) { return (val === needle); }); } return contains; });