Install @stackline/is-empty
npm install @stackline/[email protected]Package version: 1.0.3. Metadata verified: 2026-11-12. This is separate from the framework version and demonstration runtime.
- Node.js requirement
- {}
- Accepted peer dependencies (declared ranges)
- {}
Tested environments are described in the versioned README and linked source checks. A declared peer range is not evidence that every version in it was tested.
Versioned reference
This reference comes from the published @stackline/[email protected] README. Its upstream attribution and license remain with the source. Benchmark and security statements describe the cited tests and advisories, not a guarantee for every application.
@stackline/is-empty
Check whether a value is "empty".
Documentation | npm | Issues | Repository
Current package version: 1.0.3
Why this package?
@stackline/is-empty is the Stackline-maintained distribution of [email protected]. It is an independent continuation of is-empty; original authors and licenses remain credited below.
Compatibility
| Item | Value |
|---|---|
| Package | @stackline/[email protected] |
| API target | [email protected] |
| Supported Node.js | See supported framework requirements |
| License | MIT |
| Main entry | ./lib/index.js |
| Runtime dependencies | none |
Installation
npm install @stackline/is-empty
Preserve existing imports and plugin resolution with an npm alias:
npm install is-empty@npm:@stackline/is-empty
Usage and API reference
is-empty
Check whether a value is empty.
Installation
$ npm install @stackline/is-empty
$ npm test
Example
var empty = require('@stackline/is-empty');
empty([]); // true
empty({}); // true
empty(''); // true
empty(0); // true
empty(function(){}); // true
empty(null); // true
empty(undefined); // true
empty(new Map()); // true
empty(new Set()); // true
empty(new Error()); // true
empty(true); // false
empty(false); // false
empty(['a', 'b']); // false
empty({ a: 'b' }); // false
empty('string'); // false
empty(42); // false
empty(function(a,b){}); // false
empty(new Map([['key', 'value']])); // false
empty(new Set([1])); // false
empty(new Error('fail'))// false
API
isEmpty(value)
Check whether value is empty.
License
MIT
Credits and original authors
- Original project: is-empty.
- Stackline maintenance: Alexandro Paixao Marques and Stackline contributors.
Original copyright, license notices and contributor acknowledgements remain part of this distribution. Stackline maintenance does not replace authorship of the original work.
Community and Links
Use this repository's issue tracker for reproducible bugs and feature requests. Join r/Stackline for examples, usage questions and release discussions.