Sign up (with export icon)

utils/dom/insertat

Api-module icon module

Functions

  • Chevron-right icon

    insertAt( parentElement, index, nodeToInsert ) → void

    Inserts node to the parent at given index.

    Parameters

    parentElement : Element

    Parent element.

    index : number

    Insertions index.

    nodeToInsert : Node

    Node to insert.

    Returns

    void