MCPcopy Index your code
hub / github.com/loiane/javascript-datastructures-algorithms / values

Method values

src/07-set/set.ts:59–61  ·  view source on GitHub ↗

* Returns an array of all values in the set. * @returns Array of values * @complexity Time O(n) | Space O(n)

()

Source from the content-addressed store, hash-verified

57 * @complexity Time O(n) | Space O(n)
58 */
59 values(): string[] {
60 return Object.keys(this.#items);
61 }
62
63 /**
64 * Number of elements in the set.

Callers 10

unionMethod · 0.95
differenceMethod · 0.95
isSubsetOfMethod · 0.95
toStringMethod · 0.95
intersectionMethod · 0.45
isSupersetOfMethod · 0.45
matchCandidateWithJobsFunction · 0.45
set.test.tsFile · 0.45

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected