Attempts to fix a known bug present in Chrome 80 which affects Array.prototype.reduce
https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
npm i chrome80-array-reduce-polyfill
Import at entry point:
import 'chrome80-array-reduce-polyfill';
// ..code
Currently it uses global.navigator.userAgent
to detect specifically Chrome 80.
This bug may also effect other chromium based browsers, although it's not clear.
The code used in the polyfill is one which was reported to fix the issue for some users by wrapping the reduce call in additional function.
- Build dist
npm run build
- Run test suite
npm run test