deepdash
Version:
➔ 𝐃eep standalone lib / 𝐋odash extension: ✓ eachDeep ✓ filterDeep ✓ mapDeep ✓ reduceDeep ✓ pickDeep ✓ omitDeep ✓ keysDeep ✓ index ✓ condenseDeep ⋮ Parents stack ⋮ Circular check ⋮ Leaves only mode ⋮ Children mode ⋮ cherry-pick ⋮ esm
15 lines (12 loc) • 468 B
JavaScript
var arstr = require('../arstr');
module.exports = function (methodName) {
let capMethodName = arstr.upFirst(methodName);
return `/* build/tpl */
import getMixOrPatchIn from './private/getMixOrPatchIn.js';
import get${capMethodName} from './get${capMethodName}.js';
export default function add${capMethodName}(_) {
var mixOrPatchIn = getMixOrPatchIn(_);
return mixOrPatchIn('${methodName}', get${capMethodName}(_), !get${capMethodName}.notChainable);
}
`;
};