MCPcopy Index your code
hub / github.com/plotly/dash / clear

Method clear

dash/dash-renderer/src/persistence.js:187–196  ·  view source on GitHub ↗
(keyPrefix)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

keyPrefixMatchFunction · 0.85

Tested by

no test coverage detected