good morning!!!!

Skip to content
Snippets Groups Projects
Commit 6ea28f93 authored by Bas van Kervel's avatar Bas van Kervel Committed by Jeffrey Wilcke
Browse files

output BigNumbers objects in console as strings

parent 1208ac83
No related branches found
No related tags found
Loading
......@@ -97,7 +97,15 @@ var isMemberFunction = function(object, member) {
}
var isBigNumber = function (object) {
return typeof BigNumber !== 'undefined' && object instanceof BigNumber;
var result = typeof BigNumber !== 'undefined' && object instanceof BigNumber;
if (!result) {
if(typeof(object) === "object") {
result = object.constructor.toString().indexOf("function BigNumber(") == 0;
}
}
return result
};
function prettyPrint(/* */) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment