isAllZeroArray()
isAllZeroArray(
array):boolean
Defined in: src/utils/arrayUtils.ts:61
A helper function to check if an number array contains all zeros or empty.
This function checks if the input is a valid array (return false), then checks if the array is empty (return true), and finally checks if all elements in the array are numbers and are zero.
Parameters
array
number[]
The array to check.
Returns
boolean
true if the array is empty or contains only zeros, or false otherwise.
