UNPKG

@ce1pers/array-helpers

Version:
9 lines (8 loc) 387 B
import { ObjectArrayMergerInput } from "./types"; /** * Merges object arrays into one array using the provided 'mergeBy' * * @throws {Error} - Throws an error if the length of the arrays are not equal. * @throws {Error} - Throws an error if the provided merge key does not exist. */ export declare const objectArrayMerger: ({ arrays, mergeBy, }: ObjectArrayMergerInput) => any[][];