Skip to main content
Module

x/fae/mod.ts>isEmpty

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

Returns true if the given value is its type's empty value, false otherwise.

 Fae.isEmpty([1, 2, 3])   //=> false
 Fae.isEmpty([])          //=> true
 Fae.isEmpty('')          //=> true
 Fae.isEmpty(null)        //=> false
 Fae.isEmpty({})          //=> true