0.1.0 • Published 9 years ago

partial-right v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

partial-right NPM version

Returns a function with partially applied arguments that are appended to the arguments provided to the returned function.

Install

Install with npm

$ npm i partial-right --save

Usage

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'

Related projects

partial-left: Returns a function with partially applied arguments that are prepended to the arguments provided to… more

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on July 13, 2015.