UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

6 lines (4 loc) 108 B
import { getValueOr } from "./main.ts"; export function negate(x: number) { return -getValueOr(-0, x); }