Node.js lodash difference() exclude all values of the provided array

Description

Node.js lodash difference() exclude all values of the provided array


//creates an array excluding all values of the provided 
//arrays using SameValueZero for equality comparisons.

var lodash = require('lodash');
var diff = lodash.difference([1,2,3],[4,2]);

console.log(diff);//from  ww w .j  a v  a 2s .  c o m



PreviousNext

Related