whole_func_string: function stripVariadic(val, variadic) {
      variadic = escape(variadic || constants_1.VARIADIC_CHAR);
      var exp = new RegExp(variadic + '$');
      return val.replace(exp, '');
  }
func_code_string: function stripVariadic(val, variadic) {
      variadic = escape(variadic || constants_1.VARIADIC_CHAR);
      var exp = new RegExp(variadic + '$');
      return val.replace(exp, '');
  }
func_documentation_string: Strips variadic chars from flag.
  
  @param val the value to be stripped.
  @param negate the characters denoting variadic.