[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Array](https://evolu.dev/docs/api-reference/common/Array) › lastInArray

```ts
function lastInArray<T>(array: readonly [T, T]): T;
```

Defined in: [packages/common/src/Array.ts:994](https://github.com/evoluhq/evolu/blob/037c390af081e9944d616ff298a729515c5c5ab7/packages/common/src/Array.ts#L994)

Returns the last element of a non-empty array.

### Reading the last value

```ts

assertEqual(lastInArray(["a", "b", "c"]), "c");
```