UNPKG

@appello/common

Version:

Common package with many useful features for web and mobile development

3 lines (2 loc) 235 B
import { AnyObject } from '../../types'; export declare const mergeCollectionByKey: <T extends AnyObject = AnyObject>(oldCollect: T[], newCollect: T[], type?: 'push' | 'unshift', key?: keyof T | ((item: T) => string | number)) => T[];