UNPKG

vanillajs-browser-helpers

Version:

Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS in the browser

9 lines (8 loc) 328 B
/** * Append DOM element or plain HTML to the end of a given DOM element * * @param elm - The DOM element to append to * @param insertElm - DOM element or HTML (or selector) to append to insert * @return The inserted child element */ export default function append(elm: Element, insertElm: string | Node): Element | null;