// 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
gameon gameover -
Arkadipta kundu -
kvetoslavnovak -
Ajmal Hasan -
Top comments (0)