All files / utils minMax_NoStryker.js

100% Statements 6/6
100% Branches 4/4
100% Functions 4/4
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 519x 19x      
const arrayMin = (arr) => arr.reduce((p, v) => (p <= v ? p : v));
const arrayMax = (arr) => arr.reduce((p, v) => (p >= v ? p : v));
 
export { arrayMin, arrayMax };