maxBy run its callback once even if array is empty #29
Closed
Description
This line https://github.com/TinkoffCreditSystems/utils.js/blob/master/src/array/maxBy.js#L17 is always executed and error may occure if callback not check its input
This line https://github.com/TinkoffCreditSystems/utils.js/blob/master/src/array/maxBy.js#L17 is always executed and error may occure if callback not check its input