MCPcopy Create free account
hub / github.com/angular/examples / getUnit

Method getUnit

logistics-manager-app/src/fleet-db.ts:303–305  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

301 }
302
303 getUnit(id: string): FleetUnit | undefined {
304 return this.fleet.find((u) => u.id === id);
305 }
306
307 updateUnit(id: string, update: Partial<FleetUnit>): FleetUnit | undefined {
308 const index = this.fleet.findIndex((u) => u.id === id);

Callers 1

getFleetUnitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected