has-empty-property
Returns true if the object and array do not have a property, or exsiting a empty property.
Please consider following this project's author, Hopper Sun, and consider starring the project to show your ❤️ and support.
Install
Install with npm:
$ npm install --save has-empty-property
Usage
const hasEmptyProperty = ;
See the tests for more examples.
true
; // true; // true; // true; // true; // true; // true
False
Everything else is false, as you would expect:
; // false; // false; // false; // false; // false; // false; // false
About
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Running Tests
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test
License
Copyright © 2018, Hopper Sun. Released under the MIT License.