95d823951f
Renames the generic component to generic content and adds the first type, called 'main'. This commit is a preparation to allow generic content from plugins to have types.
10 lines
315 B
TypeScript
10 lines
315 B
TypeScript
import { difference } from 'ramda';
|
|
|
|
const getDifferenceBetweenLists = <T>(previousState: T[], currentState: T[]): T[][] => {
|
|
const added = difference(currentState, previousState);
|
|
const removed = difference(previousState, currentState);
|
|
return [added, removed];
|
|
};
|
|
|
|
export default getDifferenceBetweenLists;
|