Skip to main content

LocalStorage

Index

Methods

publicstaticclear

  • clear(): void
  • Alias for deleteAll.

publicstaticdelete

  • delete(key: string): void
  • Deletes the specified key from the local storage.

publicstaticdeleteAll

  • deleteAll(): void
  • Deletes all keys from the local storage.

publicstaticget

  • get(key: string): any
  • Gets the value from the specified key in the local storage.

publicstatichas

  • has(key: string): boolean

publicstaticsave

  • save(): void
  • Saves the changes to the disk.

publicstaticset

  • set(key: string, value: any): void
  • Sets the specified key to the specified value in the local storage.