hd-utils
Version:
A handy utils for modern JS developers
9 lines (8 loc) • 301 B
TypeScript
/**
* @description This function takes a value and returns true if the value is truthy, otherwise it returns false.
* @example isTruthy(1) // true
* @example isTruthy(null) // false
* @param {any} value - any
*/
declare const isTruthy: (value: unknown) => value is true;
export default isTruthy;