Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 215 Bytes

.verb.md

File metadata and controls

12 lines (9 loc) · 215 Bytes

Usage

const union = require('{%= name %}');
const obj = {};

union(obj, 'a.b.c', ['one', 'two']);
union(obj, 'a.b.c', ['three']);

console.log(obj);
//=> { a: { b: { c: [ 'one', 'two', 'three' ] } } }