UNPKG

@winglet/json

Version:

TypeScript library for safe and efficient JSON data manipulation with RFC 6901 (JSON Pointer) and RFC 6902 (JSON Patch) compliance, featuring prototype pollution protection and immutable operations

8 lines (5 loc) 259 B
import { PROTOTYPE_KEY, CONSTRUCTOR_KEY, PROTOTYPE_ASSESS_KEY } from '../../../constants/prototypeKey.mjs'; const isForbiddenKey = (key) => key === PROTOTYPE_KEY || key === CONSTRUCTOR_KEY || key === PROTOTYPE_ASSESS_KEY; export { isForbiddenKey };