MCPcopy
hub / github.com/immutable-js/immutable-js / deleteAll

Method deleteAll

src/Map.js:72–82  ·  view source on GitHub ↗
(keys)

Source from the content-addressed store, hash-verified

70 }
71
72 deleteAll(keys) {
73 const collection = Collection(keys);
74
75 if (collection.size === 0) {
76 return this;
77 }
78
79 return this.withMutations((map) => {
80 collection.forEach((key) => map.remove(key));
81 });
82 }
83
84 clear() {
85 if (this.size === 0) {

Callers

nothing calls this directly

Calls 4

withMutationsMethod · 0.95
CollectionClass · 0.90
forEachMethod · 0.80
removeMethod · 0.65

Tested by

no test coverage detected