UNPKG

@fancyapps/ui

Version:

Robust JavaScript UI Component Library

1 lines 414 B
!/*! License details at fancyapps.com/license */function(e,o){"object"==typeof exports&&"u">typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((e="u">typeof globalThis?globalThis:e||self).window=e.window||{})}(this,function(e){"use strict";e.getDirectChildren=(e,o)=>{let t=[];return e.childNodes.forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&(!o||e.matches(o))&&t.push(e)}),t}});