vue-types
Version:
Prop types utility for Vue
26 lines (22 loc) • 655 B
JavaScript
const config = {
silent: false,
logLevel: "warn"
};
function isPlainObject(value) {
if (typeof value !== "object" || value === null) {
return false;
}
const prototype = Object.getPrototypeOf(value);
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
}
const typeDefaults = () => ({
func: () => void 0,
bool: true,
string: "",
number: 0,
array: () => [],
object: () => ({}),
integer: 0
});
export { config as c, isPlainObject as i, typeDefaults as t };
//# sourceMappingURL=vue-types.Dor10hiE.mjs.map