@tempots/std

arrayHasValues() function

Checks if an array has values.

Signature:

arrayHasValues: (arr: T[]) => arr is [T, ...T[]]

Parameters

Parameter

Type

Description

arr

T[]

The array to check.

Returns: arr is [T, ...T[]]

true if the array has values, false otherwise.