bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/generic-component-content/utils.ts

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;