improve types
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
export default function isEmptyObject(object = {}) {
|
||||
export default function isEmptyObject(object = {}): boolean {
|
||||
return Object.keys(object).length === 0 && object.constructor === Object
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user