added net.version

This commit is contained in:
Bas van Kervel
2015-07-08 08:03:20 +02:00
parent a2333bcbb4
commit e84f3ec1d4
4 changed files with 11 additions and 3 deletions

View File

@ -116,7 +116,7 @@ var isBigNumber = function (object) {
var result = typeof BigNumber !== 'undefined' && object instanceof BigNumber;
if (!result) {
if(typeof(object) === "object") {
if (typeof(object) === "object" && object.constructor != null) {
result = object.constructor.toString().indexOf("function BigNumber(") == 0;
}
}