In fact, it sounds a lot like Array.reduce(). Let's look at a example of what a reducer function may look like. const INITIAL_STATE = Object ...
確定! 回上一頁