@splidejs/splide
Version:
Splide is a lightweight, flexible and accessible slider/carousel. No dependencies, no Lighthouse errors.
13 lines (10 loc) • 347 B
text/typescript
import { forEach } from '../../array';
/**
* Appends children to the parent element.
*
* @param parent - A parent element.
* @param children - A child or children to append to the parent.
*/
export function append( parent: Element, children: Node | Node[] ): void {
forEach( children, parent.appendChild.bind( parent ) );
}