schnee effeckt und fehler Korektur

This commit is contained in:
2023-08-14 17:52:24 +02:00
parent 4a843d4936
commit 79af4e9907
6813 changed files with 343821 additions and 356128 deletions

View File

@@ -4,7 +4,7 @@ var pad = require("../../string/#/pad")
, toPosInt = require("../to-pos-integer")
, toFixed = Number.prototype.toFixed;
module.exports = function (length/*, precision*/) {
module.exports = function (length /*, precision*/) {
var precision;
length = toPosInt(length);
precision = toPosInt(arguments[1]);

View File

@@ -5,6 +5,7 @@ var objToString = Object.prototype.toString, id = objToString.call(1);
module.exports = function (value) {
return (
typeof value === "number" ||
(value instanceof Number || (typeof value === "object" && objToString.call(value) === id))
value instanceof Number ||
(typeof value === "object" && objToString.call(value) === id)
);
};