Skip to content

Function: removeDuplicates() ​

removeDuplicates(newItems): IEvent[]

Defined in: packages/validate-openalex/src/events/filter.ts:52

Removes duplicate events in a given list (based on the dataIntegrity property).

Parameters ​

newItems ​

IEvent[]

An array with new events

Returns ​

IEvent[]

An array containing only unique events (without duplicates).