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.js
14 lines
(11 loc)
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
path =
require
(
'path'
);
const
ifd =
require
(path.
join
(process.
cwd
(),
'dist/ifd.js'
));
const
foo =
ifd
(
0
,
5
, {
// 0 is not false
zero
:
true
});
module
.
exports
= {
exp
:
function
(
should
) { should.
equal
(foo,
0
); } };