@polkadot/util
Version:
A collection of useful utilities for @polkadot
17 lines (16 loc) • 445 B
TypeScript
import type { Observable } from '../types.js';
/**
* @name isBObservable
* @summary Tests for a `Observable` object instance.
* @description
* Checks to see if the input object is an instance of `BN` (bn.js).
* @example
* <BR>
*
* ```javascript
* import { isObservable } from '@polkadot/util';
*
* console.log('isObservable', isObservable(...));
* ```
*/
export declare const isObservable: (value?: unknown) => value is Observable;