MCPcopy
hub / github.com/sunnylqm/react-native-storage / _removeIdInKey

Method _removeIdInKey

storage.js:297–302  ·  view source on GitHub ↗
(key, id)

Source from the content-addressed store, hash-verified

295 });
296 }
297 _removeIdInKey(key, id) {
298 let indexTobeRemoved = (this._m.__keys__[key] || []).indexOf(id);
299 if (indexTobeRemoved !== -1) {
300 this._m.__keys__[key].splice(indexTobeRemoved, 1);
301 }
302 }
303 load(params) {
304 let { key, id, autoSync = true, syncInBackground = true, syncParams, batched = false } = params;
305 return this._mapPromise.then(() => new Promise((resolve, reject) => {

Callers 2

_saveToMapMethod · 0.95
removeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected