(key: string)
| 4 | * Checks if a key is safe to use in object assignment (not a prototype pollution vector) |
| 5 | */ |
| 6 | export function isSafeKey(key: string): boolean { |
| 7 | return !DANGEROUS_KEYS.has(key) |
| 8 | } |
| 9 | |
| 10 | /** |
| 11 | * Safely assigns properties from source to target, filtering out prototype pollution keys. |
no outgoing calls
no test coverage detected