• JMap.Util.LocalStorage.set

    Set the key in local storage.

    Set nothing and do nothing if local storage is not available.

    Parameters

    • key: string

      the item key

    • value: string

      the new item value

    Returns void

    Example

    // set the value "my value" for the key "my-key"
    JMap.Util.LocalStorage.set("my-key", "my value")