lib/accumulator.js
function $max(params) {
    if (Array.isArray(params) && params.every(p => typeof p === 'number')) {
        return Math.max(...params);
    }
    throw new Error('$max expects an array of number');
}
function $max(params) {
    if (Array.isArray(params) && params.every(p => typeof p === 'number')) {
        return Math.max(...params);
    }
    throw new Error('$max expects an array of number');
}
function $max ( params ) { if ( Array . isArray ( params ) && params . every ( p => typeof p === 'number' ) ) { return Math . max ( ... params ) ; } throw new Error ( '$max expects an array of number' ) ; }
Return the max number in the array

@param {number[]} params
@returns {number}
Return the max number in the array