MCPcopy Create free account
hub / github.com/TanStack/router / isSafeKey

Function isSafeKey

packages/start-client-core/src/safeObjectMerge.ts:1–3  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

1function isSafeKey(key: string): boolean {
2 return key !== '__proto__' && key !== 'constructor' && key !== 'prototype'
3}
4
5/**
6 * Merge target and source into a new null-proto object, filtering dangerous keys.

Callers 2

safeObjectMergeFunction · 0.85
createNullProtoObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected