(keyPrefix)
| 185 | } |
| 186 | |
| 187 | clear(keyPrefix) { |
| 188 | if (keyPrefix) { |
| 189 | forEach( |
| 190 | key => delete this._data[key], |
| 191 | filter(keyPrefixMatch(keyPrefix, '.'), keys(this._data)) |
| 192 | ); |
| 193 | } else { |
| 194 | this._data = {}; |
| 195 | } |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | // Make a string 2^16 characters long (*2 bytes/char = 130kB), to test storage. |
nothing calls this directly
no test coverage detected