x-assign

A better Object.assign that merges object properties and concatenates arrays.

Usage no npm install needed!

<script type="module">
  import xAssign from 'https://cdn.skypack.dev/x-assign';
</script>

README

x-assign

An improved Object.assign that will merge nested objects and concatenate arrays.

Coverage Status Build Status

Installation

$ npm install x-assign

Usage

const XAssign = require("x-assign");

const a = {red: "apple"};
const b = {green: "pear"};
const c = XAssign.assign(a, b);

console.log(c); 
> {
>    red: "apple",
>    green: "pear"
> }

Need Support?

x-assign is a software development project by BinaryOps Software Inc.