UNPKG
vanilla-type-check
Version:
latest (2.0.3)
2.0.3
2.0.2
2.0.1
2.0.0
1.0.1
1.0.0
Basic type checker
github.com/danikaze/npm-vanilla-type-check
danikaze/npm-vanilla-type-check
vanilla-type-check
/
isEmpty.d.ts
8 lines
(7 loc)
•
250 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
/** * Check
if
an
object
or
an array
is
empty. * * @param value value
to
check * @returns `
true
`
if
`obj`
is
an
object
with
no enumerable keys
or
an empty array. `
false
` otherwise. */ export
declare
function
isEmpty(value: any):
boolean
;