Package: effect
Module: Array
Get the last element of a non empty array.
Example
import { Array } from "effect"
const result = Array.lastNonEmpty([1, 2, 3, 4])
console.log(result) // 4
Signature
declare const lastNonEmpty: <A>(self: NonEmptyReadonlyArray<A>) => A
Since v2.0.0