UNPKG

deepdash.mapvaluesdeep.dev

Version:

deepdash's mapValuesDeep standalone

20 lines (17 loc) 381 B
'use strict'; function getMixOrPatchIn(_) { function mixOrPatchIn(name, method, chain) { if (!_[name]) { if (_.mixin) { var patch = {}; patch[name] = method; _.mixin(patch, { chain: chain }); } else { _[name] = method; } } return _; } return mixOrPatchIn; } module.exports = getMixOrPatchIn;