npm.io
2.10.19 • Published 4 years ago

@extra-array/is-empty

Licence
MIT
Version
2.10.19
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
17

Checks is array is empty.

Similar: index, indexRange, size, isEmpty.

This is part of package extra-array.


array.isEmpty(x);
// x: an array
const array = require("extra-array");

var x = [1, 2, 3];
array.isEmpty(x);
// false

var x = [];
array.isEmpty(x);
// true


References

Keywords