Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
/ join-assign Public archive

Deep assign to target from source, also performs distinct concat

License

Notifications You must be signed in to change notification settings

418sec/join-assign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code style downloads license npm version

join-assign

Deep assign to target from source, also performs distinct concat.

Usage

const join = require("join-assign");

const source = {
  letters: [
    "c",
    "d"
  ]
};

const target = {
  letters: [
    "a",
    "b"
  ]
};

join.assign(target, source);

const a = [1, 2, 3, 4, 5];
const b = [4, 5, 6, 7, 8];

join.concat(a, b);