Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

cmilhench/ponyfill-array-reduce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ponyfill-array-reduce

Build Status

ES6 Array.reduce() ponyfill

Install

$ npm install ponyfill-array-reduce --save

Usage

var reduce = require('ponyfill-array-reduce');
[4, 6, 7, 12].reduce(function(a, b) {
  return a + b;
});
//=> 29
var reduce = require('ponyfill-array-reduce');
[[4, 6], [7, 12]].reduce(function(a, b) {
  return a.concat(b);
});
//=> [4, 6, 7, 12]

License

MIT © Colin Milhench

About

ES6 Array.reduce() ponyfil

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published