'a'
mh-two-thousand-and-two
2024-04-12 44d2c92345cd156a59fc327b3060292a282d2893
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
var isPlainObj = require('./isPlainObj');
var each = require('./each');
var cloneDeep = require('./cloneDeep');
exports = function(obj) {
    var i = 0;
    var ret = obj;
    var len = arguments.length;
    while (++i < len) {
        obj = arguments[i];
        if (isPlainObj(ret) && isPlainObj(obj)) {
            each(obj, function(val, key) {
                if (
                    key === '__proto__' ||
                    key === 'constructor' ||
                    key === 'prototype'
                ) {
                    return;
                }
                ret[key] = exports(ret[key], obj[key]);
            });
        } else {
            ret = cloneDeep(obj);
        }
    }
    return ret;
};
 
module.exports = exports;