Represents a mutable array that is guaranteed to have at least one element.
The type of elements in the array.
type NA = MutableNonEmptyArray<string>; // [string, ...string[]]const valid: NA = ["hello"];const alsoValid: NA = ["hello", "world"];// const invalid: NA = []; // Error Copy
type NA = MutableNonEmptyArray<string>; // [string, ...string[]]const valid: NA = ["hello"];const alsoValid: NA = ["hello", "world"];// const invalid: NA = []; // Error
Represents a mutable array that is guaranteed to have at least one element.