Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/files/index.d.ts>defaultTo

Faster and smaller alternative to Ramda
Go to Latest
function defaultTo
import { defaultTo } from "https://deno.land/x/rambda@v9.1.0/files/index.d.ts";

Parameters

defaultValue: T
input: T | null | undefined

Parameters

defaultValue: T

Returns

(input: T | null | undefined) => T