Add BigNumber.prototype.toJSON
This commit is contained in:
parent
844a1ae664
commit
6d318fd92a
|
@ -1981,7 +1981,7 @@
|
|||
/*
|
||||
* Return as toString, but do not accept a base argument.
|
||||
*/
|
||||
P['valueOf'] = function () {
|
||||
P['valueOf'] = P['toJSON'] = function () {
|
||||
return this['toS']();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue