UNPKG

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

20 lines (17 loc) 455 B
var arstr = require('../arstr'); module.exports = function (methodsList) { let strImport = ''; let strExport = ''; methodsList.forEach((methodName) => { let capMethodName = arstr.upFirst(methodName); strImport += `import add${capMethodName} from './add${capMethodName}.js';\n`; strExport += ` add${capMethodName}(_);\n`; }); return `/* build/tpl */ ${strImport} export default function apply(_) { ${strExport} return _; } `; };