use local variable instead of module.exports in example

Co-authored-by: Esben Sparre Andreasen <esbena@github.com>
This commit is contained in:
Erik Krogh Kristensen
2021-04-06 15:17:31 +02:00
committed by GitHub
parent 3b82452d76
commit 2c1cc9ead6

View File

@@ -480,7 +480,7 @@ module NodeJSLib {
)
or
// const fs = require('fs');
// module.exports = methods.reduce((obj, method) => {
// let fs_copy = methods.reduce((obj, method) => {
// obj[method] = fs[method];
// return obj;
// }, {});