Files
Henry Whitaker ea5808047f Tweaked gitignore
gitignore removed all composer and npm files, so automated builds would fail
2020-04-12 21:24:03 +01:00

15 lines
326 B
JavaScript
Vendored

'use strict';
module.exports = function union(object) {
var _this = this;
var collection = JSON.parse(JSON.stringify(this.items));
Object.keys(object).forEach(function (prop) {
if (_this.items[prop] === undefined) {
collection[prop] = object[prop];
}
});
return new this.constructor(collection);
};