* Adjust encoder/decoder fallbacks * Dep-dup is functions * Complexity cleanups
@polkadot/x-textdecoder
A cross-environment TextDecoder.
Install it via yarn add @polkadot/x-textdecoder
import TextDecoder from '@polkadot/x-textdecoder';
...
const decoder = new TextDecoder('utf-8');