* Adjust encoder/decoder fallbacks * Dep-dup is functions * Complexity cleanups
9 lines
259 B
TypeScript
9 lines
259 B
TypeScript
// Copyright 2017-2020 @polkadot/x-textencoder authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import Fallback from './fallback';
|
|
|
|
export default typeof TextEncoder === 'undefined'
|
|
? Fallback as unknown as typeof TextEncoder
|
|
: TextEncoder;
|