UNPKG
@prelude/function
Version:
latest (0.4.1)
0.4.1
0.4.0
0.3.0
0.2.0
0.1.0
0.0.3
Function module.
@prelude/function
/
mjs
/
and.js
11 lines
•
260 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/**
@returns
boolean logic "and" from provided predicates. */
const
and
= (
...fs
) =>
(
value
) =>
{
for
(
let
f
of
fs) {
if
(!
f
(value)) {
return
false
; } }
return
true
; };
export
default
and;
//# sourceMappingURL=and.js.map