Is there a way to return the difference between two arrays in JavaScript? 有沒有辦法返回JavaScript中兩個數組之間的差? 數組
For example: 例如: ide
var a1 = ['a', 'b']; var a2 = ['a', 'b', 'c', 'd']; // need ["c", "d"]