Skip to main content
Module

x/unitest/deps.ts>isLength0

🃏 Deno-first universal unit testing framework
Latest
function isLength0
Re-export
import { isLength0 } from "https://deno.land/x/unitest@v1.0.0-beta.82/deps.ts";

Whatever argument length is 0 or not.

Examples

Example 1

import { isLength0 } from './mod.ts'
isLength0([]) // true
isLength0('hello') // false

Parameters

val: { length: number; }
  • Any value what have length property

Returns

boolean

The result of !val.length