UNPKG
ifd
Version:
%s (0.0.3)
latest (0.1.0)
0.1.0
0.0.3
0.0.1
Life Extending Ternary Operator Abstractions
github.com/artisin/ifd
artisin/ifd
ifd
/
__tests__
/
doc-examples
/
the-default-abstraction
/
the-falsey-solution.md
10 lines
(8 loc)
•
111 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
__The
"falsey"
Solution__ ```js
const
foo
=
ifd
(
0
,
5
, { //
0
is not
false
zero
:
true
});
// foo === 0
```