* xxhash64 replacement * yarn.lock * hasBigInt check * extract common * lint fixes * Dedupe * flatten * Update changes * Update packages/util-crypto/src/xxhash/asU8a.spec.ts * Remove useless assignment * flatten * combine intermediate vars * Align var naming * lint * Remove unneeded inner conversions * Update packages/util-crypto/src/xxhash/xxhash64.ts * Adjust * bitLength type * BitLength type * additional BitLength * Small cleanups * Adjust * Adjust * blak2 bitLength adjust * with 384 * renames * Adjust * Adjust * localize * Comments * format performance outputs * format performance outputs * isWasmOnly revert
@polkadot/util
Various useful utility functions that are used across all projects in the @polkadot namespace. It provides utility functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate.
Usage
Installation -
yarn add @polkadot/util
Functions can be imported directly from the package, e.g.
import { isHex } from '@polkadot/util';