set Method
Sets a new value under the given key in local storage. Before storing, the value is serialized to a JSON string format
@param key: string
The specific key under which the value will be stored
@param value: T
The new value to be stored, which will be stringified before being added
API
set(key: string, value: T): void;
Example
import {localStorage} from '@bitfiber/rx';
const ls = localStorage();
ls.set('key', 'value');