Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 790 Bytes

prependChild.md

File metadata and controls

18 lines (13 loc) · 790 Bytes

prependChild

Prepend an HTMLElement into another HTMLElement

Parameters

Name Type Description Status Default
elm { HTMLElement } The element to prepend required
refElm { HTMLElement } The element in which to prepend the new element required

Example

	import prependChild from 'coffeekraken-sugar/js/dom/prependChild'
prependChild(myElementToInsert, theReferenceElement);

Author : Olivier Bossel [email protected] https://olivierbossel.com