mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-06-17 12:31:04 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { BN } from '../bn/bn.js';
|
||||
/**
|
||||
* @name isBn
|
||||
* @summary Tests for a `BN` object instance.
|
||||
* @description
|
||||
* Checks to see if the input object is an instance of `BN` (bn.js).
|
||||
* @example
|
||||
* <BR>
|
||||
*
|
||||
* ```javascript
|
||||
* import BN from 'bn.js';
|
||||
* import { isBn } from '@pezkuwi/util';
|
||||
*
|
||||
* console.log('isBn', isBn(new BN(1))); // => true
|
||||
* ```
|
||||
*/
|
||||
export function isBn(value) {
|
||||
return BN.isBN(value);
|
||||
}
|
||||
Reference in New Issue
Block a user