mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 09:25:29 +08:00

* use named exports instead of default exports * fix tests Co-authored-by: Philipp Kühn <philippkuehn@MacBook-Pro-von-Philipp.local>
8 lines
152 B
TypeScript
8 lines
152 B
TypeScript
export function isClass(value: any): boolean {
|
|
if (value.constructor?.toString().substring(0, 5) !== 'class') {
|
|
return false
|
|
}
|
|
|
|
return true
|
|
}
|