Skip to main content
Module

x/nameable/deps.ts>N

Cross-check whether it can be used as a package name or domain name
Latest
variable N
import { N } from "https://deno.land/x/nameable@v1.1.0-beta.4/deps.ts";

Returns the ! of its argument.

Examples

Example 1

N('') // true
N(false) // true
N(0) // true
N(NaN) // true
N(undefined) // true
N(null) // true

N({}) // false
N([]) // false

type

<T>(val: T) => T extends FalsyLike ? true : boolean