MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / extractArgs

Function extractArgs

lib/test/angular/1.5.0/angular.js:3815–3819  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

3813var $injectorMinErr = minErr('$injector');
3814
3815function extractArgs(fn) {
3816 var fnText = fn.toString().replace(STRIP_COMMENTS, ''),
3817 args = fnText.match(ARROW_ARG) || fnText.match(FN_ARGS);
3818 return args;
3819}
3820
3821function anonFn(fn) {
3822 // For anonymous functions, showing at the very least the function signature can help in

Callers 2

anonFnFunction · 0.70
annotateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected