Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ternjs/tern
/ simple_generic.js
File
simple_generic.js
test/cases/simple_generic.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
function
last(arr) {
return
arr[arr.length - 1]; }
2
3
last([1, 2, 3]);
//: number
4
last([
"a"
,
"b"
,
"c"
]);
//: string
Callers
nothing calls this directly
Calls
2
last
Function · 0.85
map
Function · 0.85
Tested by
no test coverage detected