dist/underscore-contrib.js
function(fun) {
      var fixArgs = _.rest(arguments);

      var f = function() {
        var args = fixArgs.slice();
        var arg = 0;

        for ( var i = 0; i < (args.length || arg < arguments.length); i++ ) {
          if ( args[i] === _ ) {
            args[i] = arguments[arg++];
          }
        }

        return fun.apply(null, args);
      };

      f._original = fun;

      return f;
    }
function(fun) {
      var fixArgs = _.rest(arguments);

      var f = function() {
        var args = fixArgs.slice();
        var arg = 0;

        for ( var i = 0; i < (args.length || arg < arguments.length); i++ ) {
          if ( args[i] === _ ) {
            args[i] = arguments[arg++];
          }
        }

        return fun.apply(null, args);
      };

      f._original = fun;

      return f;
    }
function ( fun ) { var fixArgs = _ . rest ( arguments ) ; var f = function ( ) { var args = fixArgs . slice ( ) ; var arg = 0 ; for ( var i = 0 ; i < ( args . length || arg < arguments . length ) ; i ++ ) { if ( args [ i ] === _ ) { args [ i ] = arguments [ arg ++ ] ; } } return fun . apply ( null , args ) ; } ; f . _original = fun ; return f ; }
Fixes the arguments to a function based on the parameter template defined by the presence of values and the `_` placeholder.
Fixes the arguments to a function based on the parameter template defined by the presence of values and the _ placeholder .