Array.diff

samuel Jo·2022년 10월 30일
0

codewars

목록 보기
1/46

function arrayDiff(a, b) {
  
    //전체 배열에서 b의 값이 없을때만 return
    return a.filter(val => !b.includes(val));
}
profile
step by step

0개의 댓글