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 (9 loc) 291 B
var isFunction = require('../lang/isFunction'); function result(obj, prop) { var property = obj[prop]; if(property === undefined) { return; } return isFunction(property) ? property.call(obj) : property; } module.exports = result;