Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

347 B
Raw Blame
export function findRemovedProjectIds(
  before: readonly { id: string }[] | undefined,
  after: readonly { id: string }[] | undefined,
) {
  if (!before || !after) return [];
  const remaining = new Set(after.map((project) => project.id));
  return [...new Set(before.map((project) => project.id))].filter(
    (id) => !remaining.has(id),
  );
}