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

10 lines
315 B
TypeScript
Raw Normal View History

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;