0
0

is-empty.js 285 B

1234567891011121314
  1. 'use strict';
  2. var value = require('./valid-value')
  3. , propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
  4. module.exports = function (obj) {
  5. var i;
  6. value(obj);
  7. for (i in obj) { //jslint: ignore
  8. if (propertyIsEnumerable.call(obj, i)) return false;
  9. }
  10. return true;
  11. };