UNPKG

565 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3// FIXME: Mutable param should be forbidden in static lang.
4function _mix(dist, obj) {
5 for (var key in obj) {
6 if (obj.hasOwnProperty(key) && key !== 'constructor' && obj[key] !== undefined) {
7 dist[key] = obj[key];
8 }
9 }
10}
11function mix(dist, src1, src2, src3) {
12 if (src1)
13 _mix(dist, src1);
14 if (src2)
15 _mix(dist, src2);
16 if (src3)
17 _mix(dist, src3);
18 return dist;
19}
20exports.default = mix;
21//# sourceMappingURL=mix.js.map
\No newline at end of file