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 (13 loc) 245 B
define(['./forOwn'], function (forOwn) { /** * Get object size */ function size(obj) { var count = 0; forOwn(obj, function(){ count++; }); return count; } return size; });