Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Jun 16, 2024 via pnpm

arr-diff 4.0.0

Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.
Package summary
Share
0
issues
1
license
1
MIT
Package created
26 Sep 2014
Version published
14 Apr 2017
Maintainers
3
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
arr-diff@4.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of arr-diff 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does arr-diff do?

The "arr-diff" package is a powerful tool in JavaScript that gives you an array comprised of unique values extracted from the initial array, accomplished by excluding any values present in additional arrays. For comparisons, it uses strict equality, proving extremely helpful in data analysis and manipulation.

How do you use arr-diff?

To utilize "arr-diff", first, you need to install the package using npm, yarn, or bower with the commands 'npm install --save arr-diff', 'yarn add arr-diff', or 'bower install arr-diff --save' respectively.

Once installed, the following is a sample usage:

var diff = require('arr-diff');

var a = ['a', 'b', 'c', 'd'];
var b = ['b', 'c'];

console.log(diff(a, b))
//=> ['a', 'd']

In this particular code sample, 'a' and 'd' get printed as they are the unique values found in the first array but not in the additional array.

Where are the arr-diff docs?

The complete documentation for "arr-diff" is reliably contained in the official GitHub repository, which can be accessed using the URL: https://github.com/jonschlinkert/arr-diff. It provides a comprehensive view of how the package functions, associated benchmarks, related projects, contributing guidelines, and the license under which it operates.