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