37 lines
642 B
Markdown
37 lines
642 B
Markdown
|
|
|
|
# Functions
|
|
|
|
<a id="isobservable"></a>
|
|
|
|
## isObservable
|
|
|
|
▸ **isObservable**(value: *`any`*): `boolean`
|
|
|
|
*Defined in [is/observable.ts:26](https://github.com/polkadot-js/common/blob/e19d377/packages/util/src/is/observable.ts#L26)*
|
|
|
|
*__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__*:
|
|
|
|
```javascript
|
|
import { isObservable } from '@polkadot/util';
|
|
|
|
console.log('isObservable', isObservable(...));
|
|
```
|
|
|
|
**Parameters:**
|
|
|
|
| Name | Type |
|
|
| ------ | ------ |
|
|
| value | `any` |
|
|
|
|
**Returns:** `boolean`
|
|
|
|
___
|
|
|