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.d.ts
5 lines
(4 loc)
•
291 B
TypeScript
View Raw
1
2
3
4
5
import
type
{
Predicate
,
IntersectionOfUnion
}
from
'./prelude.js'
;
/**
@returns
boolean logic "and" from provided predicates. */
declare
const
and
: <
Args
extends
Predicate
<
unknown
>[]>
(
...
fs
:
Args
) =>
(
value
:
IntersectionOfUnion
<
Parameters
<
Args
[
number
]>[
0
]>
) =>
boolean
;
export
default
and;