GoScrobble/web/node_modules/lodash-es/divide.js

23 lines
489 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
import createMathOperation from './_createMathOperation.js';
/**
* Divide two numbers.
*
* @static
* @memberOf _
* @since 4.7.0
* @category Math
* @param {number} dividend The first number in a division.
* @param {number} divisor The second number in a division.
* @returns {number} Returns the quotient.
* @example
*
* _.divide(6, 4);
* // => 1.5
*/
var divide = createMathOperation(function(dividend, divisor) {
return dividend / divisor;
}, 1);
export default divide;