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