tiptap/packages/core/src/utilities/isEmptyObject.ts

4 lines
130 B
TypeScript
Raw Normal View History

2020-10-23 15:20:26 +08:00
export default function isEmptyObject(object = {}) {
return Object.keys(object).length === 0 && object.constructor === Object
}