export type TGetUnionArgs = Parameters; export type TGetUnionReturn = ReturnType; /** * Gets union Array of two given Arrays * @template T * @param {Array} arr1 first source Array * @param {Array} arr2 sound source Array * @returns {Array} * @throws {TypeError} getUnion: arr1 and arr2 must be arrays * @example * // How to merge two arrays in JavaScript and deduplicate items? * const arr1 = [ 1, 2, 3 ]; * const arr2 = [ 2, 3, 4, 5 ]; * const union = getUnion(arr1, arr2); * console.log(union); // => [ 1, 2, 3, 4, 5 ]; * @example * // Combine user and team permissions without duplicate values * const permissions = getUnion( * [ "profile:read", "profile:write" ], * [ "profile:read", "billing:read" ] * ); */ export declare const getUnion: (arr1: T[], arr2: T[]) => T[];