교집합 (1) 썸네일형 리스트형 intersection - 배열 교집합 const intersection = (a, b) => { const s = new Set(b); return a.filter(x => s.has(x)); }; intersection([1, 2, 3], [4, 3, 2]); 이전 1 다음