0.0.4 • Published 9 years ago

sprest v0.0.4

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

sprest

Spread and rest functions.

File size: 307 bytes. Supported platforms: server and browser. Supported language versions: ES3 and above.

If you use this library in your software please tweet me @benastontweet.

Installation

npm install sprest

Example

var rest = require('sprest').rest;
var spread = require('sprest').spread;

var o = {};

o.foo = function foo(a, b){
	console.log(rest(foo, arguments));
};

o.foo('a', 'b', 'c'); // 'c'

spread(o.foo, ['a', 'b', 'c']); // 'c'

License & Copyright

This software is released under the MIT License. It is Copyright 2015, Ben Aston. I may be contacted at ben@bj.ma.

How to Contribute

Pull requests including bug fixes, new features and improved test coverage are welcomed. Please do your best, where possible, to follow the style of code found in the existing codebase.

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago