• JMap.Util.LocalStorage.get

    Returns the value, or null if not exists, for the given key.

    Returns null if localStorage is not available.

    Parameters

    • key: string

      the item key

    Returns string | null

    Example

    // returns the value if exists for the given key
    JMap.Util.LocalStorage.get("my-key")