// getDiff
const hoge = [1,2,3,4,5]
const fuga = [3,4,5,6,7]
[
...hoge.filter(v=>!fuga.includes(v)),
...fuga.filter(v=>!hoge.includes(v))
]
// [1,2,6,7]
For further actions, you may consider blocking this person and/or reporting abuse
// getDiff
const hoge = [1,2,3,4,5]
const fuga = [3,4,5,6,7]
[
...hoge.filter(v=>!fuga.includes(v)),
...fuga.filter(v=>!hoge.includes(v))
]
// [1,2,6,7]
For further actions, you may consider blocking this person and/or reporting abuse
theBridge2 -
Rahul Kumar Barnwal -
Rahul Kumar Barnwal -
TeamStation AI -
Top comments (0)