Package
has-values
Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 20.1m
- -5% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 1
- Direct, from package.json
- Last release
- 8 years ago
- v2.0.1
- GitHub stars
- 23
- 5 forks
- Open issues / PRs
- 2 / 1
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
20,116,226 downloads last week, 79,662,242 in the last month. The 12-month change of -5% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 07 in total
- Latest version
- 2.0.1, 31 Jan 20188 years ago
- First published
- 25 Mar 2015
- Last push to GitHub
- 16 Dec 20202,108 days before the snapshot
- Repository archived
- No
- Open issues
- 2
- Open pull requests
- 1
- Commits, last 52 weeks
- 0
- Dependents on npm
- 667
Major versions
- v2 first release 2.0.0, 30 Jan 2018
- v1 first release 1.0.0, 19 May 2017
- v0 first release 0.1.1, 25 Mar 2015
Recent releases
| Version | Published |
|---|---|
| 2.0.1 | 31 Jan 2018 |
| 2.0.0 | 30 Jan 2018 |
| 1.0.0 | 19 May 2017 |
| 0.1.4 | 27 Mar 2016 |
| 0.1.3 | 27 Mar 2015 |
| 0.1.2 | 25 Mar 2015 |
| 0.1.1 | 25 Mar 2015 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=6
- Runtimes
- -
- Unpacked size (npm)
- -
- Dependencies (1)
kind-of
npm install has-values- jsDelivr
https://cdn.jsdelivr.net/npm/has-values@2.0.1/ - unpkg
https://unpkg.com/has-values@2.0.1/ - esm.sh
https://esm.sh/has-values@2.0.1
Indexability: Indexed.