6 lines
117 B
JavaScript
6 lines
117 B
JavaScript
|
export function immutableDiff (a, b) {
|
||
|
return a.filter(function (i) {
|
||
|
return b.indexOf(i) < 0;
|
||
|
});
|
||
|
}
|