Returns a function with partially applied arguments that are appended to the arguments provided to the returned function.
Install with npm
$ npm i partial-right --save
var partialRight = require('partial-right');
function resolve(dir, filename) {
return path.join.apply(path, [].slice.call(arguments));
}
var fn = partialRight(resolve, 'index.html');
fn('blog');
//=> 'blog/index.html'
fn('products');
//=> 'products/index.html'
fn('peope');
//=> 'people/index.html'
partial-left: Returns a function with partially applied arguments that are prepended to the arguments provided to… more
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on July 13, 2015.