UNPKG
tamda
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Practical functional programming library for TypeScript
github.com/rabelloo/tamda
rabelloo/tamda
tamda
/
dist
/
logic
/
defaultTo.d.ts
6 lines
(5 loc)
•
214 B
TypeScript
View Raw
1
2
3
4
5
6
/** * 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;