Skip to main content
Module

x/unitest/deps.ts>isEmpty

🃏 Deno-first universal unit testing framework
Latest
function isEmpty
import { isEmpty } from "https://deno.land/x/unitest@v1.0.0-beta.82/deps.ts";

Whatever argument is empty or not

isEmpty("") // true
isEmpty({}) // true
isEmpty(new Set()) // true
isEmpty([1, 2, 3]) // false

Parameters

value: Iterable<T> | Record<PropertyKey, unknown>

Returns

boolean