Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/btholt/algorithms-exercises
/ push
Method
push
specs/arrays/arraylist.solution.test.js:25–28 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
23
this.data = {};
24
}
25
push(value) {
26
this.data[this.length] = value;
27
this.length++;
28
}
29
pop() {
30
const
ans = this.data[this.length - 1];
31
delete this.data[this.length - 1];
Callers
1
arraylist.solution.test.js
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected