Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

12345678910111213141516171819202122
  1. var createMathOperation = require('./_createMathOperation');
  2. /**
  3. * Multiply two numbers.
  4. *
  5. * @static
  6. * @memberOf _
  7. * @since 4.7.0
  8. * @category Math
  9. * @param {number} multiplier The first number in a multiplication.
  10. * @param {number} multiplicand The second number in a multiplication.
  11. * @returns {number} Returns the product.
  12. * @example
  13. *
  14. * _.multiply(6, 4);
  15. * // => 24
  16. */
  17. var multiply = createMathOperation(function(multiplier, multiplicand) {
  18. return multiplier * multiplicand;
  19. }, 1);
  20. module.exports = multiply;