diff --git a/gun.js b/gun.js index 97a202d8..f5bbe2dd 100644 --- a/gun.js +++ b/gun.js @@ -142,7 +142,7 @@ // we want +/- Infinity to be, but JSON does not support it, sad face. // can you guess what v === v checks for? ;) ("number" === typeof v && v != Infinity && v != -Infinity && v === v) || - (v && "string" == typeof v["#"] && Object.keys(v).length === 1 && v["#"]); + (!!v && "string" == typeof v["#"] && Object.keys(v).length === 1 && v["#"]); } })(USE, './valid');