* Sets a key/value pair in the store * * @param key - The key or key path to set * @param value - The value to set * * @example * store.set('username', 'john') * store.set(['user', 'preferences'], { theme: 'dark' })
(key: string | string[], value: AllowedSessionValues)
| 165 | * store.set(['user', 'preferences'], { theme: 'dark' }) |
| 166 | */ |
| 167 | set(key: string | string[], value: AllowedSessionValues): void { |
| 168 | this.#modified = true |
| 169 | lodash.set(this.values, key, value) |
| 170 | } |
| 171 | |
| 172 | /** |
| 173 | * Removes a key from the store |
no outgoing calls
no test coverage detected