e765a83cee865eee7877aa28075a21cbac11efa613f2dbe120367d80c0c35cf2d7536a8cbc683e466da3b800c746eeeab98b7ef75e0aca35dbab1dda08f090 420 B

12345678910111213141516171819202122
  1. import baseMean from './_baseMean.js';
  2. import identity from './identity.js';
  3. /**
  4. * Computes the mean of the values in `array`.
  5. *
  6. * @static
  7. * @memberOf _
  8. * @since 4.0.0
  9. * @category Math
  10. * @param {Array} array The array to iterate over.
  11. * @returns {number} Returns the mean.
  12. * @example
  13. *
  14. * _.mean([4, 2, 8, 6]);
  15. * // => 5
  16. */
  17. function mean(array) {
  18. return baseMean(array, identity);
  19. }
  20. export default mean;