Function E

  • Short function to create a HTML element by tag name

    Type Parameters

    • K extends keyof HTMLElementTagNameMap

    Parameters

    • tag: K

      Tag name

    • Rest ...items: (string | number | Node)[]

      Elements to append to this new element

    Returns HTMLElementTagNameMap[K]

Generated using TypeDoc