Closed DiamondYuan closed 5 years ago
i think map.get is master than for loop
Very good catch, you're quite right. I'm not going to use a Map
for the sake of unfortunate people in environments that don't have it (e.g. IE 10), but doing this with an object to look up makes good sense. Fixed in https://github.com/dphilipson/typescript-fsa-reducers/commit/7a681624db665e6371d7f7f30d4653ba255b7d27.
why not use map