isEmptyObject.js 350 B

1234567891011121314
  1. Object.defineProperty(exports, "__esModule", { value: true });
  2. function isEmptyObject(obj) {
  3. if (!obj) {
  4. return true;
  5. }
  6. for (var key in obj) {
  7. if (Object.hasOwnProperty.call(obj, key)) {
  8. return false;
  9. }
  10. }
  11. return true;
  12. }
  13. exports.default = isEmptyObject;
  14. //# sourceMappingURL=isEmptyObject.js.map