src/di.js
function functionParameters(f) {
  assert(typeof f === 'function');
  var matches = functionRegex.exec(f.toString());
  if(!matches || !matches[2].length) {
    return [];
  }
  return matches[2].split(/[,\s]+/).filter(function(str) {
    return str.length;
  });
}
function functionParameters(f) {
  assert(typeof f === 'function');
  var matches = functionRegex.exec(f.toString());
  if(!matches || !matches[2].length) {
    return [];
  }
  return matches[2].split(/[,\s]+/).filter(function(str) {
    return str.length;
  });
}
function functionParameters ( f ) { assert ( typeof f === 'function' ) ; var matches = functionRegex . exec ( f . toString ( ) ) ; if ( ! matches || ! matches [ 2 ] . length ) { return [ ] ; } return matches [ 2 ] . split ( / [,\s]+ / ) . filter ( function ( str ) { return str . length ; } ) ; }
get function arguments as array
get function arguments as array