UNPKG

tamda

Version:

Practical functional programming library for TypeScript

6 lines (5 loc) 214 B
/** * Returns the supplied value if the actual value is `null`, `undefined` or `NaN`, * otherwise returns the actual value itself. */ export declare function defaultTo<T>(value: T): (actual: unknown) => T;