import { isNotEmpty } from "https://deno.land/x/isx@1.5.0/iterable/is_not_empty.ts";
Whether the array is not empty or not.
Examples
Example 1
Example 1
import { isNotEmpty } from "https://deno.land/x/isx@$VERSION/iterable/is_not_empty.ts";
import { assert } from "https://deno.land/std/testing/asserts.ts";
assert(isNotEmpty([""]));
assert(isNotEmpty([[]]));
Parameters
input: T[]
Any array.
Whether the input is not empty or not.
Examples
Example 1
Example 1
import { isNotEmpty } from "https://deno.land/x/isx@$VERSION/iterable/is_not_empty.ts";
import { assert } from "https://deno.land/std/testing/asserts.ts";
assert(isNotEmpty("abc"));
assert(isNotEmpty([new Set([0, 1, 2])]));