Checks is array is empty.
npm install @extra-array/is-emptyChecks is array is empty.
:package:
:smiley_cat:
:running:
:vhs:
:moon:
:scroll:
:newspaper:
:blue_book:
> Similar: [index], [indexRange], [size], [isEmpty].
> This is part of package [extra-array].
[extra-array]: https://www.npmjs.com/package/extra-array
``javascript`
array.isEmpty(x);
// x: an array
`javascript
const array = require("extra-array");
var x = [1, 2, 3];
array.isEmpty(x);
// false
var x = [];
array.isEmpty(x);
// true
``
- Data.List.null: Haskell
- List.isEmpty: elm
- Array.length: MDN web docs
- Array.isEmpty: sugarjs
[index]: https://github.com/nodef/extra-array/wiki/index
[indexRange]: https://github.com/nodef/extra-array/wiki/indexRange
[size]: https://github.com/nodef/extra-array/wiki/size
[isEmpty]: https://github.com/nodef/extra-array/wiki/isEmpty