Added is empty helper function

This commit is contained in:
Mitchell McCaffrey 2020-06-27 11:18:10 +10:00
parent c6bea2a573
commit f301a58c12

View File

@ -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;
}