Skip to content
0

katanakit-js / useClearStorage

Function: useClearStorage() ​

ts
function useClearStorage(target?): void;

Defined in: src/infrastructure/storage/storage.service.ts:399

Clears all values from the specified storage backend.

Parameters ​

ParameterTypeDefault valueDescription
target"localStorage" | "sessionStorage""localStorage"Which storage backend to clear (default: "localStorage").

Returns ​

void

Example ​

ts
useClearStorage("sessionStorage");

Released under the MIT License.