Link Search Menu Expand Document

Table of contents


defaultTo (function)

Similar to R.defaultTo, but doesn’t handle NaN as a special case

Signature

export function defaultTo<A>(d: A): (value?: A | null) => A;
export function defaultTo<A>(d: A, value?: A | null): A; { ... }

Added in v0.1.3