Open alen-hast opened 3 years ago
https://github.com/Markov56/react-redux-tic-tac-toe/blob/dee4cb9f595cf2d591d668b1e5e942f9126209fa/src/index.js#L35
Do we need to keep calculateWinner there? I guess it's better to be extracted into utils or so.
calculateWinner
Btw, do you have any ideas on how to avoid using loops in this function?
thx, I will extract it. Hm, why do we have to avoid loop in this func?
https://github.com/Markov56/react-redux-tic-tac-toe/blob/dee4cb9f595cf2d591d668b1e5e942f9126209fa/src/index.js#L35
Do we need to keep
calculateWinner
there? I guess it's better to be extracted into utils or so.Btw, do you have any ideas on how to avoid using loops in this function?