arrayMin function Null safety

double arrayMin(
  1. Array a
)

Return the sum of all elements of the array

Examples

var n = Array([1, 2, 3]);

print(arraySum(n));

/* expected output:
6.0
*/

Implementation

double arrayMin(Array a) {
  return a.reduce(min);
}