
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
diff-arrays
Advanced tools
Utility method for finding the difference between arrays, showing which array has which differences
Utility method to compute the difference between two arrays. AMD and CommonJS compatible; works in Node.js and the browser.
It's fork of array-difference that shows in the output if the
difference is on the left-hand side (lhs) or right-hand side (rhs).
Thanks Mike Pennisi for the original.
$ npm install diff-arrays
var da = require('diff-arrays');
var left = [
'anyone@example.com',
'anytwo@example.com',
'anythre@example.com',
'anyfour@example.com'
];
var right = [
'anyfour@example.com',
'anyfive@example.com',
'anysix@example.com',
'anyseven@example.com'
];
var diff = da(left, right);
console.log(diff);
{ lhs:
[ 'anyone@example.com',
'anytwo@example.com',
'anythre@example.com' ],
rhs:
[ 'anyfive@example.com',
'anysix@example.com',
'anyseven@example.com' ] }
Copyright (c) 2015 Bram Borggreve
Licensed under the MIT license.
Copyright (c) 2013 Mike Pennisi
Licensed under the MIT Expat license.
FAQs
Utility method for finding the difference between arrays, showing which array has which differences
We found that diff-arrays demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.