# subtract
# Description
两数相减
# Params
(minuend, subtrahend)
# Return
number
# Depend
import createMathOperation from './.internal/createMathOperation.js'
# Code
const subtract = createMathOperation((minuend, subtrahend) => minuend - subtrahend, 0)
# Analyze
和 add 基本一致,方法改为了减法
# Remark
# Example
subtract(6, 4) // => 2
← startsWith sum →