Skip to main content

Function: removeItem

▸ removeItem(key, storage?): void

remove a key from the specified storage if the storage is set to 'any', try all storage

Parameters​

NameTypeDescription
keystring: name of the key to get the value from
storage?string | null: localStorage, sessionStorage, cookie, any (defaults to any)

Returns​

void

Defined in​

onekijs/packages/onekijs-framework/src/utils/storage.ts:122