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

Method getItem

adev/shared-docs/providers/local-storage.ts:40–46  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

38 }
39
40 getItem(key: string): string | null {
41 try {
42 return localStorage.getItem(key);
43 } catch {
44 return null;
45 }
46 }
47
48 key(index: number): string | null {
49 try {

Calls

no outgoing calls

Tested by

no test coverage detected