You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/src/infra/prototype-keys.ts

6 lines
181 B
TypeScript

const BLOCKED_OBJECT_KEYS = new Set(["__proto__", "prototype", "constructor"]);
export function isBlockedObjectKey(key: string): boolean {
return BLOCKED_OBJECT_KEYS.has(key);
}