Implementing custom `isFalsy()`
const isFalsy = (value) => {
const isUndefined = value === undefined;
const isNull = value === null;
const isEmptyString = typeof value === "string" && !value.trim();
const isEmptyArray =
typeof value === "object" && Array.isArray(value) ...
codedrops.hashnode.dev1 min read