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

RedVentures/reduce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reduce

array reduce

Installation

  $ component install redventures/reduce

API

var reduce = require('reduce');

var numbers = [0, 1, 2, 3, 4, 5];

var result = reduce(numbers, function(prev, curr){
  return prev + curr;
});

License

Copyright 2012-2015 Red Ventures

reduce is dual licensed under the MIT and Apache version 2.0 licenses.

See LICENSE for additional information.