gtg2json/node_modules/@babel/types/lib/utils/inherit.js

12 lines
267 B
JavaScript
Raw Normal View History

2021-02-27 10:31:05 +01:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = inherit;
function inherit(key, child, parent) {
if (child && parent) {
child[key] = Array.from(new Set([].concat(child[key], parent[key]).filter(Boolean)));
}
}