Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (11 sloc) 400 Bytes

build status deps status

mergesorted

returns the interception of two ordered arrays

var mergesorted = require('mergesorted');

console.log(mergesorted([2, 3, 4], [1, 2, 3]))
//
// [2,3]
//