Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function FindIntersection(strArr) {
- let [opt1,opt2] = strArr.map(x => x.split(',').map(x => parseInt(x)));
- let s = new Set(opt2);
- return opt1.filter(x => s.has(x)).join(',') || 'false';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement