Update doc examples to ES2015.

This commit is contained in:
John-David Dalton
2017-01-10 01:45:20 -08:00
parent 8c97051909
commit ef2c4bf5e1
113 changed files with 188 additions and 228 deletions

View File

@@ -15,11 +15,9 @@ import baseReduce from './.internal/baseReduce.js';
* @see reduce
* @example
*
* var array = [[0, 1], [2, 3], [4, 5]];
* const array = [[0, 1], [2, 3], [4, 5]];
*
* reduceRight(array, function(flattened, other) {
* return flattened.concat(other);
* }, []);
* reduceRight(array, (flattened, other) => flattened.concat(other), []);
* // => [4, 5, 2, 3, 0, 1]
*/
function reduceRight(collection, iteratee, accumulator) {