mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
6 lines
217 B
JavaScript
6 lines
217 B
JavaScript
/**
|
|
* Allows passing arguments to the function executed by startParallelShell.
|
|
*/
|
|
const funWithArgs = (fn, ...args) =>
|
|
"(" + fn.toString() + ")(" + args.map(x => tojson(x)).reduce((x, y) => x + ", " + y) + ")";
|