rest-param

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i rest-param

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • schtoeffel