Asserts if a property key is safe against prototype pollution and prototype hijacking. Returns false for 'proto', 'constructor', and 'prototype'.
The property key to check
True if the key is safe to assign or merge
isSafeKey('name'); // trueisSafeKey('__proto__'); // false Copy
isSafeKey('name'); // trueisSafeKey('__proto__'); // false
Asserts if a property key is safe against prototype pollution and prototype hijacking. Returns false for 'proto', 'constructor', and 'prototype'.