insert-element
Insert an element at the specified position within a container
Installation
$ npm install @f/insert-element
Usage
var insertElement = { return }
API
insertElement(parent, node, pos)
parent
- The DOM node you want to insertnode
intonode
- The node you want to insert intoparent
pos
- The numerical index you want to insertnode
withinparent
Returns: The inserted node (node
).
License
MIT