mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
fix equalNodetype util
This commit is contained in:
parent
79a217f96c
commit
f8895d5f3f
@ -1,3 +1,3 @@
|
||||
export default function equalNodeType(nodeType, node) {
|
||||
return Array.isArray(nodeType) && (nodeType.indexOf(node.type) > -1 || node.type === nodeType)
|
||||
return (Array.isArray(nodeType) && nodeType.indexOf(node.type) > -1) || node.type === nodeType
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user