UNPKG
lean4-code-actions
Version:
latest (1.1.32)
1.1.32
Refactorings and snippets for Lean 4
lean4-code-actions
/
libs
/
utils
/
NonEmptyArray
/
predicates.ts
6 lines
(4 loc)
•
148 B
text/typescript
View Raw
1
2
3
4
5
6
import { NonEmptyArray }
from
'./index'
export
const
isNonEmptyArray
= <T>(
array
: T[]):
array
is NonEmptyArray<T> => {
return
array
.length >
0
}