UNPKG

hd-utils

Version:

A handy utils for modern JS developers

10 lines (9 loc) 333 B
/** * 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 */ const isFalsy = (val) => !val; export default isFalsy;