1.0.1 • Published 9 years ago

rest-param v1.0.1

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

rest-param Build Status npm version Coverage Status Dependency Status

Returns a function with an appended rest param

Install

$ npm install --save rest-param

Usage

var restParam = require('rest-param');

restParam(function(a, b, rest) {
  console.log(a); // 1
  console.log(b); // 2
  console.log(rest); // [3, 4]
})(1, 2, 3, 4);

API

restParam(fn)

fn

Required
Type: function

License

MIT © stoeffel