update

abstract fun update(key: String, value: JsAny?): PromiseLike<Void?>(source)

Store a value. The value must be JSON-stringifyable.

Note that using undefined as value removes the key from the underlying storage.

Parameters

key

A string.

value

A value. MUST not contain cyclic references.

Online Documentation