Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis. Learn more
Socket
Log inDemoInstall

difference

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Issues
File Explorer

Advanced tools

difference

Calculate the difference of two arrays

    1.0.2latest
    GitHub

Version published
Maintainers
1
Weekly downloads
306
decreased by-40.23%

Weekly downloads

Readme

Source

difference

Calculate the difference of two arrays

browser support

npm install difference

simple api

difference = require('difference');

difference(arrA, arrB);

// Important notes.

[1] is the same as ['1'] for now. This was meant to be the simplest and fastest way of calculating difference between two arrays.

difference([1,2,'3'],[3,4,5])

//output = [1,2,4,5];

Keywords

FAQs

Last updated on 19 Feb 2014

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc