import { isNumeric } from "@helpers/lang"; function castAttributeValue(value) { if (value === "false") { return false; } if (value === "true") { return true; } if (isNumeric(value)) { return parseInt(value, 10); } return value; } function isNode(o) { return typeof Node === "object" ? o instanceof Node : o && typeof o === "object" && typeof o.nodeType === "number" && typeof o.nodeName === "string"; } export { castAttributeValue, isNode };