node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

mergesorted

mergesorted

Returns the interception of two ordered arrays

var mergesorted = require('mergesorted');
 
console.log(mergesorted([2, 3, 4], [1, 2, 3]))
// 
// [2,3] 
//