https://github.com/Gozala/reducers
Tip revision: fc0627cda4f3fafad3b8b212ce7912c53771e78e authored by Irakli Gozalishvili on 22 January 2013, 17:02:00 UTC
Add IE10 into test matrix.
Add IE10 into test matrix.
Tip revision: fc0627c
into.js
"use strict";
var fold = require("./fold")
function into(source, buffer) {
/**
Adds items of given `reducible` into
given `array` or a new empty one if omitted.
**/
return fold(source, function foldInto(value, result) {
result.push(value)
return result
}, buffer || [])
}
module.exports = into