import { isEmpty } from "https://deno.land/x/isx@1.1.1/iterable/is_empty.ts";
Weather the string is empty or not.
Examples
Example 1
Example 1
import { isEmpty } from "https://deno.land/x/isx@$VERSION/iterable/is_empty.ts";
import { assert, assertFalse } from "https://deno.land/std/testing/asserts.ts";
assert(isEmpty(""));
assertFalse(isEmpty("a"));
Weather the array is empty or not.
Examples
Example 1
Example 1
import { isEmpty } from "https://deno.land/x/isx@$VERSION/iterable/is_empty.ts";
import { assert, assertFalse } from "https://deno.land/std/testing/asserts.ts";
assert(isEmpty([]));
assertFalse(isEmpty([""]));
Wether the input is empty or not.
Examples
Example 1
Example 1
import { isEmpty } from "https://deno.land/x/isx@$VERSION/iterable/is_empty.ts";
import { assert, assertFalse } from "https://deno.land/std/testing/asserts.ts";
assert(isEmpty(new Set()));
assertFalse(isEmpty(new Set("")));