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

11 lines
196 B
TypeScript
Raw Normal View History

import isClass from './isClass'
2021-01-20 22:10:30 +08:00
export default function isObject(item: any): boolean {
return (
item
&& typeof item === 'object'
&& !Array.isArray(item)
&& !isClass(item)
)
2021-01-20 16:18:49 +08:00
}