@flexilla/utilities
Version:
Utilities package for flexilla library
11 lines (10 loc) • 338 B
JavaScript
const e = (t, o = document.body) => o.querySelector(t), s = (t, o = document.body) => {
const r = n(t, o);
return Array.from(r).find((c) => c.parentElement === o);
}, n = (t, o = document.body) => Array.from(o.querySelectorAll(t)), y = (t) => typeof t == "string" ? e(t) : t;
export {
e as $,
n as $$,
s as $d,
y as $getEl
};