1.0.1 • Published 9 years ago

array-duplicate v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

array-duplicate

NPM version build status Downloads js-standard-style

Utility method to find duplicated items from two arrays. If you want to compute the difference between two arrays, use array-difference.

Installation

$ npm install array-duplicate

Usage

var array1 = [1, 2, 3]
var array2 = [2, 3, 4]
duplicated(array1, array2) // yeilds [2, 3]

License

Copyright (c) 2015 Fraser Xu Licensed under the MIT Expat license.