initial commit
This commit is contained in:
13
public/bower_components/moment/src/lib/utils/is-object-empty.js
vendored
Normal file
13
public/bower_components/moment/src/lib/utils/is-object-empty.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
export default function isObjectEmpty(obj) {
|
||||
if (Object.getOwnPropertyNames) {
|
||||
return (Object.getOwnPropertyNames(obj).length === 0);
|
||||
} else {
|
||||
var k;
|
||||
for (k in obj) {
|
||||
if (obj.hasOwnProperty(k)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user