/** * Select a single dom element */ export function select( selector: string, context: any = document ): H { return context.querySelector(selector) } /** * Select multiple dom elements */ export function selects( selector: string, context: any = document ): H[] { return Array.from(context.querySelectorAll(selector)) }