UNPKG
sorting-lib
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.1
1.0.0
0.0.3
0.0.2
0.0.1
A library that makes sorting easier by introducing `Comparator`
sorting-lib
/
dist
/
nil.d.ts
6 lines
(5 loc)
•
260 B
TypeScript
View Raw
1
2
3
4
5
6
export
declare
type
Nil
=
null
|
undefined
;
export
declare
function
isNotNil<T>(
t
: T |
Nil
): t is T;
export
declare
function
isNil<T>(
t
: T |
Nil
): t is
Nil
;
export
declare
function
isTruthy<T>(
t
: T):
boolean
;
export
declare
function
isFalsy<T>(
t
: T):
boolean
;