MCPcopy Index your code
hub / github.com/caolan/async / parseParams

Function parseParams

lib/autoInject.js:14–22  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

12var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
13
14function parseParams(func) {
15 func = func.toString().replace(STRIP_COMMENTS, '');
16 func = func.match(FN_ARGS)[2].replace(' ', '');
17 func = func ? func.split(FN_ARG_SPLIT) : [];
18 func = func.map(function (arg){
19 return trim(arg.replace(FN_ARG, ''));
20 });
21 return func;
22}
23
24/**
25 * A dependency-injected version of the [async.auto]{@link module:ControlFlow.auto} function. Dependent

Callers 1

autoInjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…