mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
16 lines
330 B
JavaScript
16 lines
330 B
JavaScript
import { difference } from "lodash";
|
|
|
|
|
|
export default class ServiceItemsEntries {
|
|
|
|
static entriesShouldDeleted(storedEntries, entries) {
|
|
const storedEntriesIds = storedEntries.map((e) => e.id);
|
|
const entriesIds = entries.map((e) => e.id);
|
|
|
|
return difference(
|
|
storedEntriesIds,
|
|
entriesIds,
|
|
);
|
|
}
|
|
|
|
} |