1.2.0 • Published 2 years ago
join-assign v1.2.0
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);