Skip to content
JS
Package

lodash.compact

The lodash method `_.compact` exported as a module.

v3.0.1MIT-Types: NoneUtility libraries
$ npm install lodash.compact

Key numbers

As of 25 Sept 2026
Weekly downloads
185.4k
+23% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
-
v3.0.1
GitHub stars
61.3k
7.2k forks
Open issues / PRs
54 / 51
Contributors
268
Commits, last 52 weeks
44

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300k400kSept 2025Mar 2026Sept 2026High 354.9k (19 May 2026)Low 122.8k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

185,361 downloads last week, 981,076 in the last month. The 12-month change of +23% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
3.0.1
First published
-
Last push to GitHub
11 Sept 202613 days before the snapshot
Repository archived
No
Open issues
54
Open pull requests
51
Commits, last 52 weeks
44
Dependents on npm
-

Major versions

-

Recent releases

-

Module format
-Not determined from package.json
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install lodash.compact
  • jsDelivrhttps://cdn.jsdelivr.net/npm/lodash.compact@3.0.1/
  • unpkghttps://unpkg.com/lodash.compact@3.0.1/
  • esm.shhttps://esm.sh/lodash.compact@3.0.1
PackageWeekly downloadsGzipLast releaseModuleComparison
famulus19.4k-5 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.