Skip to content
Permalink
master
Switch branches/tags
Go to file
@jdalton
Latest commit 6cb3460 Feb 5, 2017 History
1 contributor

Users who have contributed to this file

import createMathOperation from './.internal/createMathOperation.js'
/**
* Subtract two numbers.
*
* @since 4.0.0
* @category Math
* @param {number} minuend The first number in a subtraction.
* @param {number} subtrahend The second number in a subtraction.
* @returns {number} Returns the difference.
* @example
*
* subtract(6, 4)
* // => 2
*/
const subtract = createMathOperation((minuend, subtrahend) => minuend - subtrahend, 0)
export default subtract