utils.js 226 B

1234567891011121314
  1. /**
  2. * Check if object is empty
  3. * @param {Object} o
  4. * @return {boolean}
  5. **/
  6. function isObjectEmpty(o) {
  7. for (var i in o) {
  8. if (o.hasOwnProperty(i)) {
  9. return false;
  10. }
  11. }
  12. return true;
  13. }