MCPcopy Create free account
hub / github.com/nodejs/node / storageGetItem

Function storageGetItem

deps/v8/tools/turbolizer/src/common/util.ts:80–84  ·  view source on GitHub ↗
(key: string, defaultValue?: any, parse: boolean = true)

Source from the content-addressed store, hash-verified

78}
79
80export function storageGetItem(key: string, defaultValue?: any, parse: boolean = true): any {
81 let value = window.sessionStorage.getItem(key);
82 if (parse) value = JSON.parse(value);
83 return value === null ? defaultValue : value;
84}
85
86export function storageSetItem(key: string, value: any): void {
87 window.sessionStorage.setItem(key, value);

Callers 15

restoreExpandedStateMethod · 0.90
getLastExpandedStateMethod · 0.90
updateRangesMethod · 0.90
updateLeftWidthMethod · 0.90
updateRightWidthMethod · 0.90
constructorMethod · 0.90
showMethod · 0.90
addCustomDataSelectMethod · 0.90
appendInlineNodesMethod · 0.90
nodesCustomDataShowedMethod · 0.90

Calls 1

parseMethod · 0.65

Tested by

no test coverage detected