UNPKG

360 BJavaScriptView Raw
1// Copyright 2017-2022 @polkadot/util authors & contributors
2// SPDX-License-Identifier: Apache-2.0
3import { isOnObject } from "./helpers.js";
4const checker = isOnObject('toBigInt', 'toBn', 'toNumber', 'unwrap');
5/**
6 * @name isCompact
7 * @summary Tests for SCALE-Compact-like object instance.
8 */
9
10export function isCompact(value) {
11 return checker(value);
12}
\No newline at end of file