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

15 lines (10 loc) 291 B
define(['../lang/isFunction'], function (isFunction) { function result(obj, prop) { var property = obj[prop]; if(property === undefined) { return; } return isFunction(property) ? property.call(obj) : property; } return result; });