Category

Math

Mathematical operations and calculations

15 utilities available

add

Adds two numbers.

ceil

Computes number rounded up to precision.

divide

Divides two numbers.

floor

Computes number rounded down to precision.

max

Computes the maximum value of array. If array is empty or falsy, undefined is returned.

maxBy

This method is like max except that it accepts iteratee which is invoked for each element in array to generate the criterion by which the value is ranked.

mean

Computes the mean of the values in array.

meanBy

This method is like mean except that it accepts iteratee which is invoked for each element in array to generate the value to be averaged.

min

Computes the minimum value of array. If array is empty or falsy, undefined is returned.

minBy

This method is like min except that it accepts iteratee which is invoked for each element in array to generate the criterion by which the value is ranked.

multiply

Multiplies two numbers.

round

Computes number rounded to precision.

subtract

Subtracts two numbers.

sum

Computes the sum of the values in array.

sumBy

This method is like sum except that it accepts iteratee which is invoked for each element in array to generate the value to be summed.