const createStore = (reducer) => { let state; let listeners = []; const getState = () => state;//这里的箭头函数转换成一般的函数是这样的吗?const getState=function(){return state;} const dispatch = (action) => { state = reducer(state, action); listeners.forEach(listener => listener());//这部分代码是什么意思,箭头函数怎么转换? }; const subscribe = (listener) => { listeners.push(listener); return () => { listeners = listeners.filter(l => l !== listener);//想问下这里的箭头函数转换成一般的函数是什么样的?listeners.filter是什么意思 } }; dispatch({}); return { getState, dispatch, subscribe };};