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