ÿØÿà JFIFÿØÿà JFIF ÿØÿà JFIFÿØÿà JFIF   ÿþ$    File Manager

File Manager

Path: /home/u371470492/domains/theglitzcontest.com/public_html/splide/src/js/utils/dom/child/

Melihat File: child.ts

import { children } from '../children/children';


/**
 * Returns a child element that matches the specified tag or class name.
 *
 * @param parent   - A parent element.
 * @param selector - A selector to filter children.
 *
 * @return A matched child element if available, or otherwise `undefined`.
 */
export function child<E extends HTMLElement>( parent: HTMLElement, selector?: string ): E | undefined {
  return selector ? children<E>( parent, selector )[ 0 ] : parent.firstElementChild as E;
}
ÿØÿà JFIF    ÿþ$ ÿØÿà JFIF    ÿþ$ ÿÂ