lib/entry.js
function getCall() {
  var result = _.trim(_.get(/\*\/\s*(?:function\s+)?([^\s(]+)\s*\(/.exec(this.entry), 1));
  if (!result) {
    result = _.trim(_.get(/\*\/\s*(.*?)[:=,]/.exec(this.entry), 1));
    result = /['"]$/.test(result)
      ? _.trim(result, '"\'')
      : result.split('.').pop().split(/^(?:const|let|var) /).pop();
  }
  var name = getValue(this, 'name') || result;
  if (!this.isFunction()) {
    return name;
  }
  var params = this.getParams();
  result = _.castArray(result);

  // Compile the function call syntax.
  _.each(params, function(param) {
    var paramValue = param[1],
        parentParam = _.get(/\w+(?=\.[\w.]+)/.exec(paramValue), 0);

    var parentIndex = parentParam == null ? -1 : _.findIndex(params, function(param) {
      return _.trim(param[1], '[]').split(/\s*=/)[0] == parentParam;
    });

    // Skip params that are properties of other params (e.g. `options.leading`).
    if (_.get(params[parentIndex], 0) != 'Object') {
      result.push(paramValue);
    }
  });

  // Format the function call.
  return name + '(' + result.slice(1).join(', ') + ')';
}
function getCall() {
  var result = _.trim(_.get(/\*\/\s*(?:function\s+)?([^\s(]+)\s*\(/.exec(this.entry), 1));
  if (!result) {
    result = _.trim(_.get(/\*\/\s*(.*?)[:=,]/.exec(this.entry), 1));
    result = /['"]$/.test(result)
      ? _.trim(result, '"\'')
      : result.split('.').pop().split(/^(?:const|let|var) /).pop();
  }
  var name = getValue(this, 'name') || result;
  if (!this.isFunction()) {
    return name;
  }
  var params = this.getParams();
  result = _.castArray(result);

  // Compile the function call syntax.
  _.each(params, function(param) {
    var paramValue = param[1],
        parentParam = _.get(/\w+(?=\.[\w.]+)/.exec(paramValue), 0);

    var parentIndex = parentParam == null ? -1 : _.findIndex(params, function(param) {
      return _.trim(param[1], '[]').split(/\s*=/)[0] == parentParam;
    });

    // Skip params that are properties of other params (e.g. `options.leading`).
    if (_.get(params[parentIndex], 0) != 'Object') {
      result.push(paramValue);
    }
  });

  // Format the function call.
  return name + '(' + result.slice(1).join(', ') + ')';
}
function getCall ( ) { var result = _ . trim ( _ . get ( / \*\/\s*(?:function\s+)?([^\s(]+)\s*\( / . exec ( this . entry ) , 1 ) ) ; if ( ! result ) { result = _ . trim ( _ . get ( / \*\/\s*(.*?)[:=,] / . exec ( this . entry ) , 1 ) ) ; result = / ['"]$ / . test ( result ) ? _ . trim ( result , '"\'' ) : result . split ( '.' ) . pop ( ) . split ( / ^(?:const|let|var)  / ) . pop ( ) ; } var name = getValue ( this , 'name' ) || result ; if ( ! this . isFunction ( ) ) { return name ; } var params = this . getParams ( ) ; result = _ . castArray ( result ) ; // Compile the function call syntax. _ . each ( params , function ( param ) { var paramValue = param [ 1 ] , parentParam = _ . get ( / \w+(?=\.[\w.]+) / . exec ( paramValue ) , 0 ) ; var parentIndex = parentParam == null ? - 1 : _ . findIndex ( params , function ( param ) { return _ . trim ( param [ 1 ] , '[]' ) . split ( / \s*= / ) [ 0 ] == parentParam ; } ) ; // Skip params that are properties of other params (e.g. `options.leading`). if ( _ . get ( params [ parentIndex ] , 0 ) != 'Object' ) { result . push ( paramValue ) ; } } ) ; // Format the function call. return name + '(' + result . slice ( 1 ) . join ( ', ' ) + ')' ; }
Extracts the function call from the entry.

@memberOf Entry
@returns {string} Returns the function call.
Extracts the function call from the entry .