/** * Retrieves all elements of the array except the last element. * * @tsplus getter NonEmptyImmutableArray init */ export function init(self: NonEmptyImmutableArray): ImmutableArray { return new ImmutableArray(self.array.slice(0, -1)) }