Fix Space and Null

pull/167/head
thefantas 3 years ago committed by GitHub
parent 11699c1d1c
commit 7d8952f623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4252,7 +4252,8 @@
function Decimal(v) {
var e, i, t,
x = this;
if (typeof v !== "undefined" && v && v.constructor === String) v = v.trim();
if (typeof v === "undefined" || !v) v = "0";
// Decimal called without new.
if (!(x instanceof Decimal)) return new Decimal(v);

Loading…
Cancel
Save