UNPKG
lean4-code-actions
Version:
latest (1.1.32)
1.1.32
Refactorings and snippets for Lean 4
lean4-code-actions
/
libs
/
utils
/
remeda
/
includes.ts
10 lines
(6 loc)
•
265 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ purry }
from
'remeda'
export
function
includes<T>(
value
: T):
(
array
: T[]
) =>
boolean
export
function
includes<T>(
array
: T[],
value
: T):
boolean
export
function
includes
(
) {
return
purry
(<T>
(
array
: T[],
value
: T
) =>
array.
includes
(value),
arguments
) }