Skip to main content
Module

x/core/util.ts>mergeArrays

Some auxiliary functions and classes of deno.
Latest
function mergeArrays
import { mergeArrays } from "https://deno.land/x/core@0.1.9/util.ts";

Merge two arrays by the specify function.

Examples

mergeArrays(arr1, arr2, (v1, v2) => v1.id == v2.id)

Parameters

arr1: Array<any>
arr2: Array<any>
callback: Function