UNPKG

500 BJavaScriptView Raw
1// Copyright 2017-2022 @polkadot/util authors & contributors
2// SPDX-License-Identifier: Apache-2.0
3import { isOn } from "./helpers.js";
4/**
5 * @name isBObservable
6 * @summary Tests for a `Observable` object instance.
7 * @description
8 * Checks to see if the input object is an instance of `BN` (bn.js).
9 * @example
10 * <BR>
11 *
12 * ```javascript
13 * import { isObservable } from '@polkadot/util';
14 *
15 * console.log('isObservable', isObservable(...));
16 * ```
17 */
18
19export const isObservable = isOn('next');
\No newline at end of file