ampache_react/app/utils/immutable.js
Phyks (Lucas Verney) 40f6223bd0 Use Immutable, enhance i18n, pagination in the store
* Keep track of pagination in the store
* Use Immutable in reducers
* Finish i18n, every available strings are now translated in English and French
* Add a loading indicator
* Premises of API error handling
* Better locale negotiation
2016-08-01 00:30:44 +02:00

6 lines
117 B
JavaScript

export function immutableDiff (a, b) {
return a.filter(function (i) {
return b.indexOf(i) < 0;
});
}