Skip to main content
Module

x/fae/mod.ts>empty

A functional module for Deno inspired from Ramda.
Latest
function empty
import { empty } from "https://deno.land/x/fae@v1.1.1/mod.ts";

Returns the empty value of its argument's type.

 Fae.empty([1, 2, 3])     //=> []
 Fae.empty('unicorns')    //=> ''
 Fae.empty({x: 1, y: 2})  //=> {}

Returns

EmptyReturnType<T>