Skip to content
JS
Package

arr-diff

Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.

v4.0.0, 14 Apr 2017MITCommonJSTypes: NoneUtility libraries
$ npm install arr-diff

Key numbers

As of 25 Sept 2026
Weekly downloads
16.4m
-8% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
9 years ago
v4.0.0
GitHub stars
45
19 forks
Open issues / PRs
2 / 2
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30mSept 2025Mar 2026Sept 2026High 22.9m (25 Nov 2025)Low 8m (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.

16,414,733 downloads last week, 62,798,979 in the last month. The 12-month change of -8% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
011 in total
Latest version
4.0.0, 14 Apr 20179 years ago
First published
26 Sept 2014
Last push to GitHub
4 Jan 20221,724 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
2
Commits, last 52 weeks
0
Dependents on npm
725

Major versions

  1. v4 first release 4.0.0, 14 Apr 2017
  2. v3 first release 3.0.0, 7 May 2016
  3. v2 first release 2.0.0, 6 Dec 2015
  4. v1 first release 1.0.0, 28 Dec 2014
  5. v0 first release 0.1.0, 26 Sept 2014

Recent releases

VersionPublished
4.0.014 Apr 2017
3.0.07 May 2016
2.0.06 Dec 2015
1.1.023 Aug 2015
1.0.128 Dec 2014
1.0.028 Dec 2014
0.2.22 Dec 2014
0.2.11 Dec 2014
0.2.030 Nov 2014
0.1.12 Oct 2014
0.1.026 Sept 2014
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=0.10.0
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install arr-diff
  • jsDelivrhttps://cdn.jsdelivr.net/npm/arr-diff@4.0.0/
  • unpkghttps://unpkg.com/arr-diff@4.0.0/
  • esm.shhttps://esm.sh/arr-diff@4.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
@stdlib/number-float64-base-normalize620.5k-7 months agoCommonJS-
@stdlib/utils-define-nonenumerable-read-only-property612.5k-7 months agoCommonJS-
@stdlib/utils-define-property611.6k-7 months agoCommonJS-
@stdlib/string-format603.8k-7 months agoCommonJS-
@stdlib/utils-constructor-name597.2k-7 months agoCommonJS-
@stdlib/utils-global597k-7 months agoCommonJS-
@stdlib/utils-escape-regexp-string596.5k-7 months agoCommonJS-
@stdlib/utils-get-prototype-of595.9k-7 months agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.