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

8 lines
158 B
TypeScript
Raw Normal View History

2021-01-20 23:39:42 +08:00
export default function isClass(item: any): boolean {
if (item.constructor?.toString().substring(0, 5) !== 'class') {
return false
}
return true
}