Method “insert”

function insert(node, index)

Inserts a node at the given index

Parameters

NameTypeDescription
nodeobjectThe node object to insert
indexintegerThe index within the list at which to insert the node