Skip to main content
variable merge
import { merge } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Creates a new object from the combination of two or more objects.

Use Array.prototype.reduce() combined with Object.keys(obj) to iterate over all objects and keys. Use hasOwnProperty() and Array.prototype.concat() to append values for keys existing in multiple objects.

type

(...objs: AnyObject[]) => unknown