Skip to content

negate

negate(n): number

Defined in: Data/Num.ts:151

Negates a number (arithmetic negation).

number

number

pipe(5, Num.negate);  // -5
pipe(-5, Num.negate); // 5