mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-23 17:07:49 +08:00
8 lines
158 B
TypeScript
8 lines
158 B
TypeScript
export default function isClass(item: any): boolean {
|
|
if (item.constructor?.toString().substring(0, 5) !== 'class') {
|
|
return false
|
|
}
|
|
|
|
return true
|
|
}
|