diff --git a/src/find.ts b/src/find.ts index 0a7fe30..07a989c 100644 --- a/src/find.ts +++ b/src/find.ts @@ -53,9 +53,7 @@ export default function find( const matches: Array> = [] - const nodeTypes = Array.isArray(matcher.nodeType) - ? matcher.nodeType - : matcher.nodeType + const nodeTypes = matcher.nodeType ? [matcher.nodeType] : ['Node']