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