Skip to content

Intersect

Malexion edited this page Oct 31, 2016 · 1 revision

__.intersect(obj1, obj2, [func])

  • obj1 First Item to iterate over.
  • obj2 Second Item to iterate over.
  • [func] [Optional] Function path to the item to be evaluated.

Examples

var sharedValues = __.intersect([ 1, 4, 6, 3, 8, 5 ], [ 6, 10, 19, 4 ]);

console.log(sharedValues);
Clone this wiki locally