I\'m working with a coworkers code today and I saw something I\'ve never seen before.
I understand the first part of the statement (require in the file clean.js). >
Whatever is exported from ./tasks/clean is a function, so it's just being invoked with 'js' and './dist/js' as parameters
./tasks/clean
'js'
'./dist/js'
It is equivalent to the following:
const clean = require('./tasks/clean'); clean('js', './dist/js');