mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-07-13 04:25:41 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isBn = isBn;
|
||||
const bn_js_1 = require("../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
|
||||
* ```
|
||||
*/
|
||||
function isBn(value) {
|
||||
return bn_js_1.BN.isBN(value);
|
||||
}
|
||||
Reference in New Issue
Block a user