UNPKG

hd-utils

Version:

A handy utils for modern JS developers

11 lines (10 loc) 391 B
import { Falsy } from '../types'; /** * Tests for Falsy by simply applying negation `!` to the tested `val`. * * The value is mostly in added type-information and explicity, * but in case of this simple type much the same can often be archived by just using negation `!`: * @example isFalsy("") // true */ declare const isFalsy: (val: unknown) => val is Falsy; export default isFalsy;