Skip to main content

isUnsafeKey()

isUnsafeKey(key: unknown): boolean

Defined in: packages/core/src/utils/objectUtils.ts:35

Returns true if the key could cause prototype pollution when used as a property name in bracket-notation assignment.

Parameters

ParameterType
keyunknown

Returns

boolean


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.