Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
topologicalSort
Function · 0.95
Stack.test.js
File · 0.45
getValues
Method · 0.45
getNeighbors
Method · 0.45
getEdges
Method · 0.45
getDegree
Method · 0.45
hanoiTowerRecursive
Function · 0.45
hanoiTower.test.js
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected