UNPKG

@splidejs/splide

Version:

Splide is a lightweight, flexible and accessible slider/carousel. No dependencies, no Lighthouse errors.

10 lines (9 loc) 242 B
/** * Returns the specified attribute value. * * @param elm - An element. * @param attr - An attribute to get. */ export function getAttribute( elm: Element, attr: string ): string | null { return elm.getAttribute( attr ); }