The Wayback Machine - https://web.archive.org/web/20170626183655/https://github.com/lodash/lodash/blob/master/subtract.js
Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 469 Bytes
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
You can't perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.