@extra-array/is-empty.min

Checks is array is empty. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Usage no npm install needed!

<script type="module">
  import extraArrayIsEmptyMin from 'https://cdn.skypack.dev/@extra-array/is-empty.min';
</script>

README

Checks 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.

This is browserified, minified version of @extra-array/is-empty.
It is exported as global variable array_isEmpty.
CDN: unpkg, jsDelivr.


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