Skip to main content
Module

x/fae/propOr.ts

A functional module for Deno inspired from Ramda.
Latest
import * as fae from "https://deno.land/x/fae@v1.1.1/propOr.ts";

Variables

If the given, non-null object has an own property with the specified name, returns the value of that property. Otherwise returns the provided default value. const fae = { name: 'Fae', age: 15 } const Great = Fae.prop('GreatLibrary') const GreatWithDefault = Fae.propOr('FaeModule', 'GreatLibrary')