MCPcopy Index your code
hub / github.com/trekhleb/javascript-algorithms / toArray

Method toArray

src/data-structures/stack/Stack.js:54–58  ·  view source on GitHub ↗

* @return {*[]}

()

Source from the content-addressed store, hash-verified

52 * @return {*[]}
53 */
54 toArray() {
55 return this.linkedList
56 .toArray()
57 .map((linkedListNode) => linkedListNode.value);
58 }
59
60 /**
61 * @param {function} [callback]

Callers 8

topologicalSortFunction · 0.95
Stack.test.jsFile · 0.45
getValuesMethod · 0.45
getNeighborsMethod · 0.45
getEdgesMethod · 0.45
getDegreeMethod · 0.45
hanoiTowerRecursiveFunction · 0.45
hanoiTower.test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected