blob: 6c57f50d239af42075618865d5083719f55789f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
"use strict";
exports.__esModule = true;
exports.default = inherit;
var _uniq = _interopRequireDefault(require("lodash/uniq"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function inherit(key, child, parent) {
if (child && parent) {
child[key] = (0, _uniq.default)([].concat(child[key], parent[key]).filter(Boolean));
}
}
|