You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

is-empty.js 311B

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