1 | import { isArray } from "./is-array.js";
|
2 | import { isString } from "./is-string.js";
|
3 | const ILLEGAL_KEYS = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
4 | const isIllegalKey = (x) => ILLEGAL_KEYS.has(x);
|
5 | const isProtoPath = (path) => isArray(path) ? path.some(isIllegalKey) : isString(path) ? path.indexOf(".") !== -1 ? path.split(".").some(isIllegalKey) : isIllegalKey(path) : false;
|
6 | export {
|
7 | isIllegalKey,
|
8 | isProtoPath
|
9 | };
|