UNPKG
@aitoralejandro/amanda
Version:
latest (1.0.6)
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Utilities collection library
AitorAlejandro/amanda
@aitoralejandro/amanda
/
src
/
isEmptyArray.ts
9 lines
(7 loc)
•
222 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
import
{ isArray }
from
'./isArray'
;
export
function
isEmptyArray
(
arr
:
any
):
boolean
{
if
(
isArray
(arr)) {
return
arr.
length
===
0
; }
throw
new
Error
(
'isEmptyArray: An array must be provided as an argument'
); }