Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/marijnh/Eloquent-JavaScript
/ prepend
Function
prepend
code/solutions/04_3_a_list.js:17–19 ·
view source on GitHub ↗
(value, list)
Source
from the content-addressed store, hash-verified
15
}
16
17
function
prepend(value, list) {
18
return
{value, rest: list};
19
}
20
21
function
nth(list, n) {
22
if
(!list)
return
undefined;
Callers
1
04_3_a_list.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected