fix equalNodetype util

This commit is contained in:
Hans Pagel 2021-02-01 17:38:37 +01:00
parent 79a217f96c
commit f8895d5f3f

View File

@ -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
}