MCPcopy Index your code
hub / github.com/angular/angular / last

Function last

packages/language-service/testing/src/util.ts:164–169  ·  view source on GitHub ↗
(array: T[])

Source from the content-addressed store, hash-verified

162}
163
164function last<T>(array: T[]): T {
165 if (array.length === 0) {
166 throw new Error(`last() called on empty array`);
167 }
168 return array[array.length - 1];
169}

Callers 1

assertFileNamesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…