MCPcopy Create free account
hub / github.com/angular/angular / hasKey

Method hasKey

packages/core/src/transfer_state.ts:118–120  ·  view source on GitHub ↗

* Test whether a key exists in the store.

(key: StateKey<T>)

Source from the content-addressed store, hash-verified

116 * Test whether a key exists in the store.
117 */
118 hasKey<T>(key: StateKey<T>): boolean {
119 return Object.hasOwn(this.store, key);
120 }
121
122 /**
123 * Indicates whether the state is empty.

Callers 4

resource_spec.tsFile · 0.80
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected