Utility method to find duplicated items from two arrays. If you want to compute the difference between two arrays, use array-difference.
$ npm install array-duplicate
var array1 = [1, 2, 3] var array2 = [2, 3, 4] duplicated(array1, array2) // yeilds [2, 3]
Copyright (c) 2015 Fraser Xu Licensed under the MIT Expat license.