MCPcopy
hub / github.com/webpack/webpack / asPairArray

Method asPairArray

lib/util/StackedMap.js:177–180  ·  view source on GitHub ↗

* Returns visible key/value pairs using the external representation. * @returns {[K, Cell<V>][]} array of key/value pairs

()

Source from the content-addressed store, hash-verified

175 * @returns {[K, Cell<V>][]} array of key/value pairs
176 */
177 asPairArray() {
178 this._compress();
179 return Array.from(this.map.entries(), extractPair);
180 }
181
182 /**
183 * Returns the visible contents as a plain `Map`.

Callers 1

asMapMethod · 0.95

Calls 2

_compressMethod · 0.95
entriesMethod · 0.80

Tested by

no test coverage detected