@lesjoursfr/browser-tools
    Preparing search index...

    Class LocalStorageKeyValueStore

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    Methods

    • Return the key's value, or null if the key does not exist.

      Parameters

      • key: string

        the name of the key you want to retrieve the value of

      Returns string | undefined

      the value of the key or undefined if the key does not exist

    • Add the key to the store, or update that key's value if it already exists.

      Parameters

      • key: string

        the name of the key you want to create/update

      • value: string

        the value you want to give the key you are creating/updating

      Returns void