Skip to content

subtract

subtract(b): (a) => number

Defined in: Utils/Num.ts:106

Subtracts b from a number. Data-last: subtract(b)(a) = a - b.

number

(a): number

number

number

pipe(10, Num.subtract(3));                  // 7
pipe([5, 10, 15], Arr.map(Num.subtract(2))); // [3, 8, 13]