A "truthy" value is a value that translates to true when evaluated in a Boolean context. All values are truthy unless they're defined as falsy.
All falsy values are as follows:
falsenilCreate a function that takes an argument of any data type and returns 1 if it's truthy and 0 if it's falsy.
is_truthy(0) ➞ 1
is_truthy(false) ➞ 0
is_truthy("") ➞ 1
is_truthy("false") ➞ 1return the result.