UNPKG

@aplus-frontend/ui

Version:

16 lines (15 loc) 341 B
import { isFunction as e } from "@fruits-chain/utils"; import { isArray as i } from "lodash-unified"; function u(r) { if (!r || !e(r)) return; const t = r(); return i(t) ? n(t)[0] : t; } function n(r) { return (r || []).filter((t) => t.type !== Symbol.for("v-cmt")); } export { u as getSingleVNode, n as getValidVNodeList };