Added is empty helper function
This commit is contained in:
parent
c6bea2a573
commit
f301a58c12
@ -50,3 +50,7 @@ export function logImage(url, width, height) {
|
||||
].join(" ");
|
||||
console.log("%c ", style);
|
||||
}
|
||||
|
||||
export function isEmpty(obj) {
|
||||
return Object.keys(obj).length === 0 && obj.constructor === Object;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user