UNPKG
@arrows/dispatch
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
0.2.5
0.2.4
0.2.3
0.2.2
0.2.0
0.1.0
Functional dispatch library
caderek.github.io/arrows/packages/dispatch/
caderek/arrows
@arrows/dispatch
/
isIn.d.ts
9 lines
(8 loc)
•
274 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
declare
type
RawIsIn
=
(
list
:
any
[] |
Set
<
any
>,
value
:
any
) =>
boolean
;
declare
type
IsIn
=
RawIsIn
& (
(
list
:
any
[] |
Set
<
any
>
) =>
(
value
:
any
) =>
boolean
);
/** * Checks if a value is inside an array/set. */
declare
const
isIn
:
IsIn
;
export
{ isIn };
export
default
isIn;