# getProfileLastItemsDepths

> Returns the deepest recorded depth for each component array in a well profile.

> **getProfileLastItemsDepths**(`profile`): `number`[]

Returns the deepest recorded depth for each component array in a well profile.

For point-based components (fractures) the last item's `depth` field is used;
for interval-based components (bore hole, casing, etc.) the last item's `to`
field is used. Returns `0` for any empty array.

## Parameters

### profile

`Well`

The well to inspect.

## Returns

`number`[]

Array of maximum depths in the same order as the well's component
  arrays: lithology, fractures, caves, bore_hole, hole_fill, reduction,
  surface_case, well_case, well_screen.
