/** * @name matches * @namespace js.dom.query * @type Function * @platform js * @status stable * * Polyfill for the Element.matches function * * @param {HTMLElement} elm The element to check * @param {String} selector The selector to check on the element * @return {Boolean} If the element match the selector or not * * @snippet __matches($1, $2) * * @todo tests * * @example js * import { __matches } from '@lotsof/sugar/dom' * if (__matches(myCoolHTMLElement, '.my-cool-css-selector')) { * // the element match the selector * } * * @see https://developer.mozilla.org/en/docs/Web/API/Element/matches * @since 1.0.0 * @author Olivier Bossel (https://lotsof.dev) */ export default function __matches(el: HTMLElement, selector: string): boolean;