Function pushAtToUniqueArray
pushAtToUniqueArray<T>( data: T[], entry: T, getUniqueMethod: (entry: T) => unknown, index: number,): T[] Parameters
- data: T[]
- entry: T
- getUniqueMethod: (entry: T) => unknown
- index: number
Returns T[]
- Returns a new array with the updated entry.
An array of objects.