API Reference / @evolu/common / Array

Array

Type Aliases

Type AliasDescription
NonEmptyArrayAn array with at least one element.
NonEmptyReadonlyArrayA readonly array with at least one element.

Functions

FunctionDescription
appendToArrayAppends an item to an array returning a non-empty array.
isNonEmptyArrayChecks if an array is non-empty.
isNonEmptyReadonlyArrayChecks if an array is non-empty.
mapNonEmptyArrayMaps a non-empty array using a mapper function.
prependToArrayPrepends an item to an array returning a non-empty array.
shiftArrayShifts an item from a non-empty array, guaranteed to return T.

Was this page helpful?