Skip to main content
variable isEmpty
import { isEmpty } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Returns true if the a value is an empty object, collection, has no enumerable properties or is any type that is not considered a collection.

Check if the provided value is null or if its length is equal to 0.

type

(val: any) => unknown