aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/array/#/fill
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-03-27 21:01:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-03-27 21:01:33 +0100
commitcc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch)
tree92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/es5-ext/array/#/fill
parent3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff)
remove node_modules
Diffstat (limited to 'node_modules/es5-ext/array/#/fill')
-rw-r--r--node_modules/es5-ext/array/#/fill/implement.js8
-rw-r--r--node_modules/es5-ext/array/#/fill/index.js4
-rw-r--r--node_modules/es5-ext/array/#/fill/is-implemented.js7
-rw-r--r--node_modules/es5-ext/array/#/fill/shim.js25
4 files changed, 0 insertions, 44 deletions
diff --git a/node_modules/es5-ext/array/#/fill/implement.js b/node_modules/es5-ext/array/#/fill/implement.js
deleted file mode 100644
index 9de58b75f..000000000
--- a/node_modules/es5-ext/array/#/fill/implement.js
+++ /dev/null
@@ -1,8 +0,0 @@
-"use strict";
-
-if (!require("./is-implemented")()) {
- Object.defineProperty(Array.prototype, "fill", { value: require("./shim"),
- configurable: true,
-enumerable: false,
-writable: true });
-}
diff --git a/node_modules/es5-ext/array/#/fill/index.js b/node_modules/es5-ext/array/#/fill/index.js
deleted file mode 100644
index a8272475d..000000000
--- a/node_modules/es5-ext/array/#/fill/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-"use strict";
-
-module.exports = require("./is-implemented")()
- ? Array.prototype.fill : require("./shim");
diff --git a/node_modules/es5-ext/array/#/fill/is-implemented.js b/node_modules/es5-ext/array/#/fill/is-implemented.js
deleted file mode 100644
index 5d6d02e1a..000000000
--- a/node_modules/es5-ext/array/#/fill/is-implemented.js
+++ /dev/null
@@ -1,7 +0,0 @@
-"use strict";
-
-module.exports = function () {
- var arr = [1, 2, 3, 4, 5, 6];
- if (typeof arr.fill !== "function") return false;
- return String(arr.fill(-1, -3)) === "1,2,3,-1,-1,-1";
-};
diff --git a/node_modules/es5-ext/array/#/fill/shim.js b/node_modules/es5-ext/array/#/fill/shim.js
deleted file mode 100644
index 0040bf81a..000000000
--- a/node_modules/es5-ext/array/#/fill/shim.js
+++ /dev/null
@@ -1,25 +0,0 @@
-// Taken from: https://github.com/paulmillr/es6-shim/
-
-"use strict";
-
-var toInteger = require("../../../number/to-integer")
- , toPosInt = require("../../../number/to-pos-integer")
- , validValue = require("../../../object/valid-value")
- , max = Math.max
- , min = Math.min;
-
-module.exports = function (value /*, start, end*/) {
- var arr = validValue(this)
- , start = arguments[1]
- , end = arguments[2]
- , length = toPosInt(arr.length)
- , relativeStart
- , i;
-
- start = start === undefined ? 0 : toInteger(start);
- end = end === undefined ? length : toInteger(end);
-
- relativeStart = start < 0 ? max(length + start, 0) : min(start, length);
- for (i = relativeStart; i < length && i < end; ++i) arr[i] = value;
- return arr;
-};