improve types

This commit is contained in:
Philipp Kühn
2021-01-28 09:50:17 +01:00
parent a9c14fbddd
commit 4407d9a3d1
20 changed files with 58 additions and 47 deletions

View File

@@ -1,3 +1,3 @@
export default function isEmptyObject(object = {}) {
export default function isEmptyObject(object = {}): boolean {
return Object.keys(object).length === 0 && object.constructor === Object
}