From 4155297ffe1d6997c019f679b32f6a302979ba26 Mon Sep 17 00:00:00 2001 From: "Taehwan, No" Date: Wed, 21 Jun 2017 16:21:00 +0900 Subject: [PATCH] Change Array.reduce to Array.prototype.reduce --- docs/recipes/reducers/SplittingReducerLogic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/recipes/reducers/SplittingReducerLogic.md b/docs/recipes/reducers/SplittingReducerLogic.md index 18f1bea044..323f357d73 100644 --- a/docs/recipes/reducers/SplittingReducerLogic.md +++ b/docs/recipes/reducers/SplittingReducerLogic.md @@ -13,7 +13,7 @@ These new functions would typically fall into one of three categories: For clarity, these terms will be used to distinguish between different types of functions and different use cases: -- ***reducer***: any function with the signature `(state, action) -> newState` (ie, any function that *could* be used as an argument to `Array.reduce`) +- ***reducer***: any function with the signature `(state, action) -> newState` (ie, any function that *could* be used as an argument to `Array.prototype.reduce`) - ***root reducer***: the reducer function that is actually passed as the first argument to `createStore`. This is the only part of the reducer logic that _must_ have the `(state, action) -> newState` signature. - ***slice reducer***: a reducer that is being used to handle updates to one specific slice of the state tree, usually done by passing it to `combineReducers` - ***case function***: a function that is being used to handle the update logic for a specific action. This may actually be a reducer function, or it may require other parameters to do its work properly.