This commit is contained in:
2020-10-09 14:00:04 +00:00
parent d84f5a9e88
commit cbf0ee6516
3 changed files with 3 additions and 8 deletions

View File

@@ -447,7 +447,7 @@ export default {
//
objectIsEmpty: function(obj) {
//https://stackoverflow.com/a/4994265/8939
return Object.keys(obj).length === 0;
return !obj || Object.keys(obj).length === 0;
},
///////////////////////////////////////////////
// Trim specific character from start and end