Skip to main content
Module

x/isx/top_types.ts>isFalsy

TypeScript-first is function collections
Go to Latest
function isFalsy
import { isFalsy } from "https://deno.land/x/isx@1.0.0-beta.23/top_types.ts";

Whether the value is FalsyLike or not.

Examples

Example 1

import { isFalsy } from "https://deno.land/x/isx@$VERSION/mod.ts"
import { assertEquals } from "https://deno.land/std@$VERSION/testing/asserts.ts"
assertEquals(isFalsy(0), true)
assertEquals(isFalsy(""), true)
assertEquals(isFalsy("a"), false)

Parameters

value: unknown
  • Any value.