function set(key, value, stringify = JSON.stringify) {
	const data = stringify(value);
	try {
		sessionStorage[key] = data;
	} catch {
		// do nothing
	}
}
Write a value to `sessionStorage`
@param {string} key
@param {any} value
@param {(value: any) => string} stringify