If the provided value is Falsy the defaultValue will be returned
defaultIfFalsy(1)(null) => 1defaultIfFalsy(1)(undefined) => 1defaultIfFalsy(1)("") => 1defaultIfFalsy(1)(2) => 2defaultIfFalsy(() => 1)(null) => 1
Generated using TypeDoc
If the provided value is Falsy the defaultValue will be returned
Example