This commit is contained in:
2020-10-07 21:28:51 +00:00
parent a77d48c905
commit 9fcbd48a75
4 changed files with 46 additions and 37 deletions

View File

@@ -407,6 +407,13 @@ export default {
? has(obj[key.split(".")[0]], keyParts.slice(1).join("."))
: hasOwnProperty.call(obj, key))
);
},
///////////////////////////////////////////////
// Check if object is empty
//
objectIsEmpty: function(obj) {
//https://stackoverflow.com/a/4994265/8939
return Object.keys(obj).length === 0;
}
/**