bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/generic-content/utils.ts
Arthurk12 95d823951f feat(generic-component): rename to generic content and add type
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.
2024-06-10 19:36:45 -03:00

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;