This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user