How to use the cloneDeep function from underscore.string
Find comprehensive JavaScript underscore.string.cloneDeep code examples handpicked from public code repositorys.
GitHub: hokkoo/dianli
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 });
0
0
2
+ 2 other calls in file
underscore.string.slugify is the most popular function in underscore.string (323 examples)