How to use the arr-diff.apply function in arr-diff

To help you get started, we’ve selected a few arr-diff examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jonschlinkert / utils / lib / array / difference.js View on Github external
module.exports = function difference_(arr) {
  if (!Array.isArray(arr)) {
    throw new TypeError('utils#array.difference() expects an array.');
  return diff.apply(diff, arguments);


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

Latest version published 7 years ago

Package Health Score

68 / 100
Full package analysis

Popular arr-diff functions