MCPcopy
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

1function last(arr) { return arr[arr.length - 1]; }
2
3last([1, 2, 3]); //: number
4last(["a", "b", "c"]); //: string

Callers

nothing calls this directly

Calls 2

lastFunction · 0.85
mapFunction · 0.85

Tested by

no test coverage detected