This commit is contained in:
hatuhn
2019-09-13 09:45:04 +07:00
parent f14a34ba19
commit 558fb07261
16790 changed files with 0 additions and 1642370 deletions

View File

@@ -1,10 +0,0 @@
"use strict";
if (!require("./is-implemented")()) {
Object.defineProperty(Math, "log10", {
value: require("./shim"),
configurable: true,
enumerable: false,
writable: true
});
}

View File

@@ -1,3 +0,0 @@
"use strict";
module.exports = require("./is-implemented")() ? Math.log10 : require("./shim");

View File

@@ -1,7 +0,0 @@
"use strict";
module.exports = function () {
var log10 = Math.log10;
if (typeof log10 !== "function") return false;
return log10(2) === 0.3010299956639812;
};

View File

@@ -1,14 +0,0 @@
"use strict";
var log = Math.log, LOG10E = Math.LOG10E;
module.exports = function (value) {
if (isNaN(value)) return NaN;
value = Number(value);
if (value < 0) return NaN;
if (value === 0) return -Infinity;
if (value === 1) return 0;
if (value === Infinity) return Infinity;
return log(value) * LOG10E;
};