UNPKG

ducktyper

Version:

A tool for validating input based on the fundamental js idea of duck typing. The object of this is to allow for clearer input validation and specification from the perspective of the developer. It will reduce the amount of time it takes to do input valida

10 lines (9 loc) 268 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //mainly to maintain state of default objects function mergeObjects(...args) { const obj = {}; Object.assign(obj, ...args); return obj; } exports.default = mergeObjects;