Returns an array of unique values from the provided arrays based on a callback result
function unionBy<T, U extends Func>(arr: T[][], by: U): T[]
// Example:
const arr1 = [1, 3]
const arr2 = [2, 4]
unionBy([arr1, arr2], (n) => n % 2) //=> [1, 2]
Returns an array of unique values from the provided arrays based on a callback result
function unionBy<T, U extends Func>(arr: T[][], by: U): T[]
// Example:
const arr1 = [1, 3]
const arr2 = [2, 4]
unionBy([arr1, arr2], (n) => n % 2) //=> [1, 2]