MCPcopy
hub / github.com/angular-ui/ui-router / extractArgs

Function extractArgs

test/angular/1.7/angular.js:4276–4280  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

4274}
4275
4276function extractArgs(fn) {
4277 var fnText = stringifyFn(fn).replace(STRIP_COMMENTS, ''),
4278 args = fnText.match(ARROW_ARG) || fnText.match(FN_ARGS);
4279 return args;
4280}
4281
4282function anonFn(fn) {
4283 // For anonymous functions, showing at the very least the function signature can help in

Callers 2

anonFnFunction · 0.70
annotateFunction · 0.70

Calls 2

matchMethod · 0.80
stringifyFnFunction · 0.70

Tested by

no test coverage detected