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
16 lines (15 loc) • 389 B
TypeScript
/**
* Find a DOM element with the given ID
*
* @param ids - ID to find the element by
* @return The found element
*/
declare function findById(ids: string): HTMLElement | null;
/**
* Find a DOM elements from a list of IDs
*
* @param ids - ID to find the element by
* @return The found elements
*/
declare function findById(ids: string[]): HTMLElement[];
export default findById;