Skip to main content

core.memorystorage.getitem

Home > @medplum/core > MemoryStorage > getItem

MemoryStorage.getItem() method

Returns the current value associated with the given key, or null if the given key does not exist.

Signature:

getItem(key: string): string | null;

Parameters

ParameterTypeDescription
keystringThe specified storage key.

Returns:

string | null

The current value associated with the given key, or null if the given key does not exist.