function isSingleimport { isSingle } from "https://deno.land/x/isx@1.1.1/iterable/is_single.ts"; isSingle<T>(input: T[]): input is [T]Whether the array is single element or not. isSingle<T>(input: readonly T[]): input is readonly [T]isSingle(input: Iterable<unknown>): booleanWhether the input is single element or not. Whether the array is single element or not. ExamplesExample 1 import { isSingle } from "https://deno.land/x/isx@$VERSION/iterable/is_single.ts"; import { assert, assertFalse } from "https://deno.land/std/testing/asserts.ts"; assert(isSingle([0])); assertFalse(isSingle([])); assertFalse(isSingle([0, 1, 2])); Type ParametersTParametersinput: T[]Any array. Returnsinput is [T]Type ParametersTParametersinput: readonly T[]Returnsinput is readonly [T]Whether the input is single element or not. ExamplesExample 1 import { isSingle } from "https://deno.land/x/isx@$VERSION/iterable/is_single.ts"; import { assert, assertFalse } from "https://deno.land/std/testing/asserts.ts"; assert(isSingle("a")); assertFalse(isSingle("")); assertFalse(isSingle(new Set([0, 1, 2]))); Parametersinput: Iterable<unknown>Any iterable. Returnsboolean