How to use the cloneDeep function from underscore.string

Find comprehensive JavaScript underscore.string.cloneDeep code examples handpicked from public code repositorys.

97
98
99
100
101
102
103
104
105
106
res.locals.fd = function(date, format) {
    return date && moment(new Date(date)).format(format || 'YYYY-MM-DD HH:mm') || '';
};
//自动转换search参数,不带page
res.locals.fsearch = function() {
    var search = _.cloneDeep(req.query.search || req.body.search || {});
    delete search.page;
    return qst.stringify({
        search: search
    });
fork icon0
star icon0
watch icon2

+ 2 other calls in file