You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * 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 * const consumer = (value: boolean | Falsy) => { * if (!value) { * return ; * } * type newType = typeof value; // === true * // do stuff * }; */exportconstisFalsy=(val: unknown): val is Falsy=>!val;
The text was updated successfully, but these errors were encountered: