MCPcopy Create free account
hub / github.com/denoland/std / keys

Method keys

data_structures/unstable_multimap.ts:560–565  ·  view source on GitHub ↗

* Returns an iterator of all distinct keys in the map, in insertion order. * * Mutating the map during iteration is not supported and may skip or repeat * keys. * * @experimental **UNSTABLE**: New API, yet to be vetted. * * @returns An iterator of keys. * * @example Usage

()

Source from the content-addressed store, hash-verified

558 * ```
559 */
560 keys(): IterableIterator<K> {
561 // Delegates to the underlying `Map.prototype.keys()` (a native
562 // `MapIterator`); no per-bucket work is needed, so wrapping it in a
563 // hand-rolled iterator would be pure overhead.
564 return this.#map.keys();
565 }
566
567 /**
568 * Returns an iterator of all individual values across all keys, in insertion

Callers 15

memoize_test.tsFile · 0.80
lru_cache_test.tsFile · 0.80
assertContentfulEntriesFunction · 0.80
#pruneToMaxSizeMethod · 0.80
_pcg32_test.tsFile · 0.80
shuffle_test.tsFile · 0.80
sample_test.tsFile · 0.80
#encodeObjectMethod · 0.80
encodeObjectFunction · 0.80
specifyFunction · 0.80
getKeysFunction · 0.80
all_keyed_test.tsFile · 0.80

Calls

no outgoing calls

Tested by 1

testFunction · 0.64