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

Function storageSetIfIsNotExist

deps/v8/tools/turbolizer/src/common/util.ts:90–92  ·  view source on GitHub ↗
(key: string, toSet: any)

Source from the content-addressed store, hash-verified

88}
89
90export function storageSetIfIsNotExist(key: string, toSet: any): void {
91 if (storageGetItem(key, null, false) === null) storageSetItem(key, toSet);
92}
93
94export function copyToClipboard(text: string): void {
95 if (!text || text.length == 0) return;

Callers 1

constructorMethod · 0.90

Calls 2

storageGetItemFunction · 0.85
storageSetItemFunction · 0.85

Tested by

no test coverage detected