Skip to main content
Module

x/leaves/mod.ts>validator.arrayNotEmpty

A Web framework For Deno with Decorator and middleware
Latest
function validator.arrayNotEmpty
import { validator } from "https://deno.land/x/leaves@v0.1.5/mod.ts";
const { arrayNotEmpty } = validator;

Checks if given array is not empty. If null or undefined is given then this function returns false.

Parameters

array: unknown

Returns

boolean