Sha256: fbc6180709051124d4d8b17a684f7e6b44c78e6c0cd96eff73c69c48ed9f4c37
Contents?: true
Size: 577 Bytes
Versions: 14
Compression:
Stored size: 577 Bytes
Contents
/** Used as references for `-Infinity` and `Infinity`. */ var POSITIVE_INFINITY = Number.POSITIVE_INFINITY; /** * A specialized version of `_.min` for arrays without support for iteratees. * * @private * @param {Array} array The array to iterate over. * @returns {*} Returns the minimum value. */ function arrayMin(array) { var index = -1, length = array.length, result = POSITIVE_INFINITY; while (++index < length) { var value = array[index]; if (value < result) { result = value; } } return result; } module.exports = arrayMin;
Version data entries
14 entries across 7 versions & 1 rubygems