Function findNode

  • Finding a node according to the given selector.

    Parameters

    • nodes: Node[]

      The node array to search in.

    • sel: Selector

      The selectors defining the node wanted to be returned.

    Returns ModNode | undefined

    The found node.