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

@@ -12,7 +12,7 @@ var callable = require("./valid-callable")
, objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
module.exports = function (method, defVal) {
return function (obj, cb/*, thisArg, compareFn*/) {
return function (obj, cb /*, thisArg, compareFn*/) {
var list, thisArg = arguments[2], compareFn = arguments[3];
obj = Object(value(obj));
callable(cb);

View File

@@ -27,7 +27,7 @@ var deepAssign = function (target, source) {
return source;
};
module.exports = function (target/*, ...objects*/) {
module.exports = function (target /*, ...objects*/) {
return uniq
.call([ensureValue(target)].concat(slice.call(arguments, 1).map(ensureValue)))
.reduce(deepAssign);

View File

@@ -4,7 +4,7 @@ var keys = require("../keys")
, value = require("../valid-value")
, max = Math.max;
module.exports = function (dest, src/*, …srcn*/) {
module.exports = function (dest, src /*, …srcn*/) {
var error, i, length = max(arguments.length, 2), assign;
dest = Object(value(dest));
assign = function (key) {

View File

@@ -4,7 +4,7 @@ var aFrom = require("../array/from")
, assign = require("./assign")
, value = require("./valid-value");
module.exports = function (obj/*, propertyNames, options*/) {
module.exports = function (obj /*, propertyNames, options*/) {
var copy = Object(value(obj)), propertyNames = arguments[1], options = Object(arguments[2]);
if (copy !== obj && !propertyNames) return copy;
var result = {};

View File

@@ -4,7 +4,7 @@ var callable = require("./valid-callable")
, forEach = require("./for-each")
, call = Function.prototype.call;
module.exports = function (obj, cb/*, thisArg*/) {
module.exports = function (obj, cb /*, thisArg*/) {
var result = {}, thisArg = arguments[2];
callable(cb);
forEach(obj, function (value, key, targetObj, index) {

View File

@@ -4,7 +4,7 @@ var findKey = require("./find-key")
, isValue = require("./is-value");
// eslint-disable-next-line no-unused-vars
module.exports = function (obj, cb/*, thisArg, compareFn*/) {
module.exports = function (obj, cb /*, thisArg, compareFn*/) {
var key = findKey.apply(this, arguments);
return isValue(key) ? obj[key] : key;
};

View File

@@ -4,7 +4,7 @@ var callable = require("./valid-callable")
, forEach = require("./for-each")
, call = Function.prototype.call;
module.exports = function (obj, cb/*, thisArg*/) {
module.exports = function (obj, cb /*, thisArg*/) {
var result = {}, thisArg = arguments[2];
callable(cb);
forEach(

2
node_modules/es5-ext/object/map.js generated vendored
View File

@@ -4,7 +4,7 @@ var callable = require("./valid-callable")
, forEach = require("./for-each")
, call = Function.prototype.call;
module.exports = function (obj, cb/*, thisArg*/) {
module.exports = function (obj, cb /*, thisArg*/) {
var result = {}, thisArg = arguments[2];
callable(cb);
forEach(obj, function (value, key, targetObj, index) {

View File

@@ -10,7 +10,7 @@ var process = function (src, obj) {
};
// eslint-disable-next-line no-unused-vars
module.exports = function (opts1/*, …options*/) {
module.exports = function (opts1 /*, …options*/) {
var result = create(null);
forEach.call(arguments, function (options) {
if (!isValue(options)) return;

View File

@@ -3,7 +3,7 @@
var forEach = Array.prototype.forEach, create = Object.create;
// eslint-disable-next-line no-unused-vars
module.exports = function (arg/*, …args*/) {
module.exports = function (arg /*, …args*/) {
var set = create(null);
forEach.call(arguments, function (name) { set[name] = true; });
return set;

View File

@@ -3,7 +3,7 @@
var value = require("./valid-value")
, isValue = require("./is-value");
module.exports = function (obj/*, …names*/) {
module.exports = function (obj /*, …names*/) {
var length, current = 1;
value(obj);
length = arguments.length - 1;

View File

@@ -6,7 +6,7 @@ var callable = require("./valid-callable")
, call = Function.prototype.call
, defaultCb = function (value, key) { return [key, value]; };
module.exports = function (obj/*, cb, thisArg, compareFn*/) {
module.exports = function (obj /*, cb, thisArg, compareFn*/) {
var a = [], cb = arguments[1], thisArg = arguments[2];
cb = isValue(cb) ? callable(cb) : defaultCb;