import { isFunction as e, isArray as i } from "lodash-unified";
import { Comment as n } from "vue";
function m(r) {
  if (!r || !e(r))
    return;
  const t = r();
  return i(t) ? o(t)[0] : t;
}
function o(r) {
  return (r || []).filter((t) => t.type !== n);
}
export {
  m as getSingleVNode,
  o as getValidVNodeList
};
