UNPKG

891 BTypeScriptView Raw
1/**
2 * Returns true, if given `x` is an illegal object key as per
3 * {@link ILLEGAL_KEYS}.
4 *
5 * @see {@link isProtoPath} for more details
6 *
7 * @param x -
8 */
9export declare const isIllegalKey: (x: any) => boolean;
10/**
11 * Returns true if given `path` contains any {@link ILLEGAL_KEYS}, i.e. could be
12 * used to poison the prototype chain of an object.
13 *
14 * @remarks
15 * If given an array, each item is considered a single sub-path property and
16 * will be checked as is. If given a string it will be split using "." as
17 * delimiter and each item checked as is (same way array paths are handled).
18 *
19 * Original discussion here, implementation updated to be more encompassing:
20 * https://github.com/thi-ng/umbrella/pull/273
21 *
22 * @param path -
23 */
24export declare const isProtoPath: (path: string | number | readonly (string | number)[]) => boolean;
25//# sourceMappingURL=is-proto-path.d.ts.map
\No newline at end of file