API reference › @evolu/common › Array › firstInArray
function firstInArray<T>(array: readonly [T, T]): T;
Defined in: packages/common/src/Array.ts:740
Returns the first element of a non-empty array.
Example
firstInArray(["a", "b", "c"]); // "a"
API reference › @evolu/common › Array › firstInArray
function firstInArray<T>(array: readonly [T, T]): T;
Defined in: packages/common/src/Array.ts:740
Returns the first element of a non-empty array.
firstInArray(["a", "b", "c"]); // "a"