UNPKG

is-empty-array

Version:
31 lines (22 loc) 766 B
# is-empty-array [![NPM version][npm-img]][npm-url] [![License][license-img]][license-url] [![Build status][travis-img]][travis-url] Check if an array is empty. ## Installation ``` npm install is-empty-array ``` ## Usage ``` javascript var isEmptyArray = require('is-empty-array') isEmptyArray([]) // => true isEmptyArray([1]) // => false isEmptyArray({}) // => false ``` [npm-img]: https://img.shields.io/npm/v/is-empty-array.svg?style=flat-square [npm-url]: https://npmjs.org/package/is-empty-array [license-img]: http://img.shields.io/npm/l/is-empty-array.svg?style=flat-square [license-url]: LICENSE [travis-img]: https://img.shields.io/travis/gummesson/is-empty-array.svg?style=flat-square [travis-url]: https://travis-ci.org/gummesson/is-empty-array