1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-09 16:37:20 -05:00
notes/node_modules/lodash/divide.js

23 lines
491 B
JavaScript
Raw Normal View History

2017-03-09 13:16:08 -05:00
var createMathOperation = require('./_createMathOperation');
/**
* 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);
module.exports = divide;