• Get the element pointed to by the key from the target. The value returned is determined as follows:

    1. If the key is a number then the value is the child element of the target at that index.

    2. If the key is a string, the given selector (or querySelectorAll fallback) is used to retrieve the value(s).

    Parameters

    • target: Element | DocumentFragment
    • key: IKey
    • selector: ISelector = selectFirst

    Returns Element | Iterable<Element>

    Example