LocalStorage Class

Module: Utils

Utils to access the browser local storage.

Item Index

Methods

Methods

delete

(
  • key
)
static

Delete a key from the local storage.

Parameters:

  • key String

exists

(
  • key
)
Boolean static

Check if a key exists in the local storage.

Parameters:

  • key String

Returns:

Boolean:

True if the key exists false otherwise.

get

(
  • key
)
Object static

Get value from the local storage.

Parameters:

  • key String

Returns:

Object:

Value obtained from the storage.

set

(
  • key
  • value
)
static

Store value in the local storage.

Parameters:

  • key String
  • value Object