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

19 lines (15 loc) 387 B
define(['./forIn'], function (forIn) { /** * return a list of all enumerable properties that have function values */ function functions(obj){ var keys = []; forIn(obj, function(val, key){ if (typeof val === 'function'){ keys.push(key); } }); return keys.sort(); } return functions; });