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

Method hasKey

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

* Test whether a key exists in the store.

(key: StateKey<T>)

Source from the content-addressed store, hash-verified

118 * Test whether a key exists in the store.
119 */
120 hasKey<T>(key: StateKey<T>): boolean {
121 return Object.hasOwn(this.store, key);
122 }
123
124 /**
125 * 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