node package manager
Stop writing boring code. Discover, share, and reuse 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] 
//