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-problem.js
10 lines
(7 loc)
•
157 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
// if 0 is not a "falsey" value, then we gotz a problem
const
foo =
0
||
5
;
module
.
exports
= {
exp
:
function
(
should
) { should.
equal
(foo,
5
); } };