UNPKG

@fancyapps/ui

Version:

Robust JavaScript UI Component Library

1 lines 432 B
!/*! License details at fancyapps.com/license */function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((e="undefined"!=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}});