MCPcopy Index your code
hub / github.com/immutable-js/immutable-js / isProtoKey

Function isProtoKey

src/utils/protoInjection.ts:1–5  ·  view source on GitHub ↗
(key: unknown)

Source from the content-addressed store, hash-verified

1export function isProtoKey(key: unknown): boolean {
2 return (
3 typeof key === 'string' && (key === '__proto__' || key === 'constructor')
4 );
5}

Callers 5

toJSFunction · 0.90
shallowCopyFunction · 0.90
toObjectFunction · 0.90
setFunction · 0.90
mergeWithSourcesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected