webpack/examples/commonjs/increment.js

5 lines
98 B
JavaScript
Raw Normal View History

2018-07-29 21:10:19 +08:00
const add = require('./math').add;
2012-05-23 16:46:37 +08:00
exports.increment = function(val) {
return add(val, 1);
2018-07-29 21:10:19 +08:00
};