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
18 lines (17 loc) • 590 B
TypeScript
/**
* Find elements by given tag name
*
* @param elm - The DOM element to start the search from
* @param tagNames - Tag name to find the elements by
* @return List of found DOM elements
*/
declare function findByTagName(tagNames: string | string[]): Element[];
/**
* Find elements by given tag name
*
* @param elm - The DOM element to start the search from
* @param tagNames - Tag name to find the elements by
* @return List of found DOM elements
*/
declare function findByTagName(elm: Document | Element, tagNames?: string | string[]): Element[];
export default findByTagName;