diff options
| author | Priyansh <[email protected]> | 2020-12-22 17:49:59 +0530 |
|---|---|---|
| committer | Priyansh <[email protected]> | 2020-12-22 17:49:59 +0530 |
| commit | e93da8b04da86773247aadb1cbb1912e4f4526b2 (patch) | |
| tree | eb4ef3203a92ed3dbd2252ddb1ea23bd2d670c98 /node_modules/core-js/es/instance | |
| parent | a5743c293dcb435e4b159a4df791f8955a4110ec (diff) | |
| download | styx-e93da8b04da86773247aadb1cbb1912e4f4526b2.tar.xz styx-e93da8b04da86773247aadb1cbb1912e4f4526b2.zip | |
Rewriting Project
Diffstat (limited to 'node_modules/core-js/es/instance')
39 files changed, 329 insertions, 0 deletions
diff --git a/node_modules/core-js/es/instance/bind.js b/node_modules/core-js/es/instance/bind.js new file mode 100644 index 0000000..11f932a --- /dev/null +++ b/node_modules/core-js/es/instance/bind.js @@ -0,0 +1,8 @@ +var bind = require('../function/virtual/bind'); + +var FunctionPrototype = Function.prototype; + +module.exports = function (it) { + var own = it.bind; + return it === FunctionPrototype || (it instanceof Function && own === FunctionPrototype.bind) ? bind : own; +}; diff --git a/node_modules/core-js/es/instance/code-point-at.js b/node_modules/core-js/es/instance/code-point-at.js new file mode 100644 index 0000000..c4eaa42 --- /dev/null +++ b/node_modules/core-js/es/instance/code-point-at.js @@ -0,0 +1,9 @@ +var codePointAt = require('../string/virtual/code-point-at'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.codePointAt; + return typeof it === 'string' || it === StringPrototype + || (it instanceof String && own === StringPrototype.codePointAt) ? codePointAt : own; +}; diff --git a/node_modules/core-js/es/instance/concat.js b/node_modules/core-js/es/instance/concat.js new file mode 100644 index 0000000..87b7413 --- /dev/null +++ b/node_modules/core-js/es/instance/concat.js @@ -0,0 +1,8 @@ +var concat = require('../array/virtual/concat'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.concat; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.concat) ? concat : own; +}; diff --git a/node_modules/core-js/es/instance/copy-within.js b/node_modules/core-js/es/instance/copy-within.js new file mode 100644 index 0000000..c59f52d --- /dev/null +++ b/node_modules/core-js/es/instance/copy-within.js @@ -0,0 +1,8 @@ +var copyWithin = require('../array/virtual/copy-within'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.copyWithin; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.copyWithin) ? copyWithin : own; +}; diff --git a/node_modules/core-js/es/instance/ends-with.js b/node_modules/core-js/es/instance/ends-with.js new file mode 100644 index 0000000..532d6f7 --- /dev/null +++ b/node_modules/core-js/es/instance/ends-with.js @@ -0,0 +1,9 @@ +var endsWith = require('../string/virtual/ends-with'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.endsWith; + return typeof it === 'string' || it === StringPrototype + || (it instanceof String && own === StringPrototype.endsWith) ? endsWith : own; +}; diff --git a/node_modules/core-js/es/instance/entries.js b/node_modules/core-js/es/instance/entries.js new file mode 100644 index 0000000..8aedc41 --- /dev/null +++ b/node_modules/core-js/es/instance/entries.js @@ -0,0 +1,8 @@ +var entries = require('../array/virtual/entries'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.entries; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.entries) ? entries : own; +}; diff --git a/node_modules/core-js/es/instance/every.js b/node_modules/core-js/es/instance/every.js new file mode 100644 index 0000000..1faaccb --- /dev/null +++ b/node_modules/core-js/es/instance/every.js @@ -0,0 +1,8 @@ +var every = require('../array/virtual/every'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.every; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.every) ? every : own; +}; diff --git a/node_modules/core-js/es/instance/fill.js b/node_modules/core-js/es/instance/fill.js new file mode 100644 index 0000000..5d0f22b --- /dev/null +++ b/node_modules/core-js/es/instance/fill.js @@ -0,0 +1,8 @@ +var fill = require('../array/virtual/fill'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.fill; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.fill) ? fill : own; +}; diff --git a/node_modules/core-js/es/instance/filter.js b/node_modules/core-js/es/instance/filter.js new file mode 100644 index 0000000..8ba32b6 --- /dev/null +++ b/node_modules/core-js/es/instance/filter.js @@ -0,0 +1,8 @@ +var filter = require('../array/virtual/filter'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.filter; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.filter) ? filter : own; +}; diff --git a/node_modules/core-js/es/instance/find-index.js b/node_modules/core-js/es/instance/find-index.js new file mode 100644 index 0000000..27a0583 --- /dev/null +++ b/node_modules/core-js/es/instance/find-index.js @@ -0,0 +1,8 @@ +var findIndex = require('../array/virtual/find-index'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.findIndex; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.findIndex) ? findIndex : own; +}; diff --git a/node_modules/core-js/es/instance/find.js b/node_modules/core-js/es/instance/find.js new file mode 100644 index 0000000..70443c7 --- /dev/null +++ b/node_modules/core-js/es/instance/find.js @@ -0,0 +1,8 @@ +var find = require('../array/virtual/find'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.find; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.find) ? find : own; +}; diff --git a/node_modules/core-js/es/instance/flags.js b/node_modules/core-js/es/instance/flags.js new file mode 100644 index 0000000..f0b9114 --- /dev/null +++ b/node_modules/core-js/es/instance/flags.js @@ -0,0 +1,7 @@ +var flags = require('../regexp/flags'); + +var RegExpPrototype = RegExp.prototype; + +module.exports = function (it) { + return (it === RegExpPrototype || it instanceof RegExp) && !('flags' in it) ? flags(it) : it.flags; +}; diff --git a/node_modules/core-js/es/instance/flat-map.js b/node_modules/core-js/es/instance/flat-map.js new file mode 100644 index 0000000..eca5a41 --- /dev/null +++ b/node_modules/core-js/es/instance/flat-map.js @@ -0,0 +1,8 @@ +var flatMap = require('../array/virtual/flat-map'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.flatMap; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.flatMap) ? flatMap : own; +}; diff --git a/node_modules/core-js/es/instance/flat.js b/node_modules/core-js/es/instance/flat.js new file mode 100644 index 0000000..186a729 --- /dev/null +++ b/node_modules/core-js/es/instance/flat.js @@ -0,0 +1,8 @@ +var flat = require('../array/virtual/flat'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.flat; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.flat) ? flat : own; +}; diff --git a/node_modules/core-js/es/instance/for-each.js b/node_modules/core-js/es/instance/for-each.js new file mode 100644 index 0000000..3a2e6a9 --- /dev/null +++ b/node_modules/core-js/es/instance/for-each.js @@ -0,0 +1,8 @@ +var forEach = require('../array/virtual/for-each'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.forEach; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.forEach) ? forEach : own; +}; diff --git a/node_modules/core-js/es/instance/includes.js b/node_modules/core-js/es/instance/includes.js new file mode 100644 index 0000000..d282373 --- /dev/null +++ b/node_modules/core-js/es/instance/includes.js @@ -0,0 +1,13 @@ +var arrayIncludes = require('../array/virtual/includes'); +var stringIncludes = require('../string/virtual/includes'); + +var ArrayPrototype = Array.prototype; +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.includes; + if (it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.includes)) return arrayIncludes; + if (typeof it === 'string' || it === StringPrototype || (it instanceof String && own === StringPrototype.includes)) { + return stringIncludes; + } return own; +}; diff --git a/node_modules/core-js/es/instance/index-of.js b/node_modules/core-js/es/instance/index-of.js new file mode 100644 index 0000000..a5fa42a --- /dev/null +++ b/node_modules/core-js/es/instance/index-of.js @@ -0,0 +1,8 @@ +var indexOf = require('../array/virtual/index-of'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.indexOf; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.indexOf) ? indexOf : own; +}; diff --git a/node_modules/core-js/es/instance/keys.js b/node_modules/core-js/es/instance/keys.js new file mode 100644 index 0000000..0e2dca2 --- /dev/null +++ b/node_modules/core-js/es/instance/keys.js @@ -0,0 +1,8 @@ +var keys = require('../array/virtual/keys'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.keys; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.keys) ? keys : own; +}; diff --git a/node_modules/core-js/es/instance/last-index-of.js b/node_modules/core-js/es/instance/last-index-of.js new file mode 100644 index 0000000..729bc65 --- /dev/null +++ b/node_modules/core-js/es/instance/last-index-of.js @@ -0,0 +1,8 @@ +var lastIndexOf = require('../array/virtual/last-index-of'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.lastIndexOf; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.lastIndexOf) ? lastIndexOf : own; +}; diff --git a/node_modules/core-js/es/instance/map.js b/node_modules/core-js/es/instance/map.js new file mode 100644 index 0000000..4d2d17f --- /dev/null +++ b/node_modules/core-js/es/instance/map.js @@ -0,0 +1,8 @@ +var map = require('../array/virtual/map'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.map; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.map) ? map : own; +}; diff --git a/node_modules/core-js/es/instance/match-all.js b/node_modules/core-js/es/instance/match-all.js new file mode 100644 index 0000000..2ab56b1 --- /dev/null +++ b/node_modules/core-js/es/instance/match-all.js @@ -0,0 +1,9 @@ +var matchAll = require('../string/virtual/match-all'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.matchAll; + return typeof it === 'string' || it === StringPrototype + || (it instanceof String && own === StringPrototype.matchAll) ? matchAll : own; +}; diff --git a/node_modules/core-js/es/instance/pad-end.js b/node_modules/core-js/es/instance/pad-end.js new file mode 100644 index 0000000..40ea603 --- /dev/null +++ b/node_modules/core-js/es/instance/pad-end.js @@ -0,0 +1,9 @@ +var padEnd = require('../string/virtual/pad-end'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.padEnd; + return typeof it === 'string' || it === StringPrototype + || (it instanceof String && own === StringPrototype.padEnd) ? padEnd : own; +}; diff --git a/node_modules/core-js/es/instance/pad-start.js b/node_modules/core-js/es/instance/pad-start.js new file mode 100644 index 0000000..1e3220c --- /dev/null +++ b/node_modules/core-js/es/instance/pad-start.js @@ -0,0 +1,9 @@ +var padStart = require('../string/virtual/pad-start'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.padStart; + return typeof it === 'string' || it === StringPrototype + || (it instanceof String && own === StringPrototype.padStart) ? padStart : own; +}; diff --git a/node_modules/core-js/es/instance/reduce-right.js b/node_modules/core-js/es/instance/reduce-right.js new file mode 100644 index 0000000..6a8802f --- /dev/null +++ b/node_modules/core-js/es/instance/reduce-right.js @@ -0,0 +1,8 @@ +var reduceRight = require('../array/virtual/reduce-right'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.reduceRight; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.reduceRight) ? reduceRight : own; +}; diff --git a/node_modules/core-js/es/instance/reduce.js b/node_modules/core-js/es/instance/reduce.js new file mode 100644 index 0000000..efa46a9 --- /dev/null +++ b/node_modules/core-js/es/instance/reduce.js @@ -0,0 +1,8 @@ +var reduce = require('../array/virtual/reduce'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.reduce; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.reduce) ? reduce : own; +}; diff --git a/node_modules/core-js/es/instance/repeat.js b/node_modules/core-js/es/instance/repeat.js new file mode 100644 index 0000000..d4c05ad --- /dev/null +++ b/node_modules/core-js/es/instance/repeat.js @@ -0,0 +1,9 @@ +var repeat = require('../string/virtual/repeat'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.repeat; + return typeof it === 'string' || it === StringPrototype + || (it instanceof String && own === StringPrototype.repeat) ? repeat : own; +}; diff --git a/node_modules/core-js/es/instance/replace-all.js b/node_modules/core-js/es/instance/replace-all.js new file mode 100644 index 0000000..d920a60 --- /dev/null +++ b/node_modules/core-js/es/instance/replace-all.js @@ -0,0 +1,9 @@ +var replaceAll = require('../string/virtual/replace-all'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.replaceAll; + return typeof it === 'string' || it === StringPrototype + || (it instanceof String && own === StringPrototype.replaceAll) ? replaceAll : own; +}; diff --git a/node_modules/core-js/es/instance/reverse.js b/node_modules/core-js/es/instance/reverse.js new file mode 100644 index 0000000..ca4bfea --- /dev/null +++ b/node_modules/core-js/es/instance/reverse.js @@ -0,0 +1,8 @@ +var reverse = require('../array/virtual/reverse'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.reverse; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.reverse) ? reverse : own; +}; diff --git a/node_modules/core-js/es/instance/slice.js b/node_modules/core-js/es/instance/slice.js new file mode 100644 index 0000000..03ef7a7 --- /dev/null +++ b/node_modules/core-js/es/instance/slice.js @@ -0,0 +1,8 @@ +var slice = require('../array/virtual/slice'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.slice; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.slice) ? slice : own; +}; diff --git a/node_modules/core-js/es/instance/some.js b/node_modules/core-js/es/instance/some.js new file mode 100644 index 0000000..562c11e --- /dev/null +++ b/node_modules/core-js/es/instance/some.js @@ -0,0 +1,8 @@ +var some = require('../array/virtual/some'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.some; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.some) ? some : own; +}; diff --git a/node_modules/core-js/es/instance/sort.js b/node_modules/core-js/es/instance/sort.js new file mode 100644 index 0000000..96edb80 --- /dev/null +++ b/node_modules/core-js/es/instance/sort.js @@ -0,0 +1,8 @@ +var sort = require('../array/virtual/sort'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.sort; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.sort) ? sort : own; +}; diff --git a/node_modules/core-js/es/instance/splice.js b/node_modules/core-js/es/instance/splice.js new file mode 100644 index 0000000..5b907f4 --- /dev/null +++ b/node_modules/core-js/es/instance/splice.js @@ -0,0 +1,8 @@ +var splice = require('../array/virtual/splice'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.splice; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.splice) ? splice : own; +}; diff --git a/node_modules/core-js/es/instance/starts-with.js b/node_modules/core-js/es/instance/starts-with.js new file mode 100644 index 0000000..99a01a7 --- /dev/null +++ b/node_modules/core-js/es/instance/starts-with.js @@ -0,0 +1,9 @@ +var startsWith = require('../string/virtual/starts-with'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.startsWith; + return typeof it === 'string' || it === StringPrototype + || (it instanceof String && own === StringPrototype.startsWith) ? startsWith : own; +}; diff --git a/node_modules/core-js/es/instance/trim-end.js b/node_modules/core-js/es/instance/trim-end.js new file mode 100644 index 0000000..c004cba --- /dev/null +++ b/node_modules/core-js/es/instance/trim-end.js @@ -0,0 +1,9 @@ +var trimEnd = require('../string/virtual/trim-end'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.trimEnd; + return typeof it === 'string' || it === StringPrototype + || (it instanceof String && own === StringPrototype.trimEnd) ? trimEnd : own; +}; diff --git a/node_modules/core-js/es/instance/trim-left.js b/node_modules/core-js/es/instance/trim-left.js new file mode 100644 index 0000000..fc5c309 --- /dev/null +++ b/node_modules/core-js/es/instance/trim-left.js @@ -0,0 +1,9 @@ +var trimLeft = require('../string/virtual/trim-left'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.trimLeft; + return typeof it === 'string' || it === StringPrototype + || (it instanceof String && own === StringPrototype.trimLeft) ? trimLeft : own; +}; diff --git a/node_modules/core-js/es/instance/trim-right.js b/node_modules/core-js/es/instance/trim-right.js new file mode 100644 index 0000000..ef38eff --- /dev/null +++ b/node_modules/core-js/es/instance/trim-right.js @@ -0,0 +1,9 @@ +var trimRight = require('../string/virtual/trim-right'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.trimRight; + return typeof it === 'string' || it === StringPrototype + || (it instanceof String && own === StringPrototype.trimRight) ? trimRight : own; +}; diff --git a/node_modules/core-js/es/instance/trim-start.js b/node_modules/core-js/es/instance/trim-start.js new file mode 100644 index 0000000..74a89bd --- /dev/null +++ b/node_modules/core-js/es/instance/trim-start.js @@ -0,0 +1,9 @@ +var trimStart = require('../string/virtual/trim-start'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.trimStart; + return typeof it === 'string' || it === StringPrototype + || (it instanceof String && own === StringPrototype.trimStart) ? trimStart : own; +}; diff --git a/node_modules/core-js/es/instance/trim.js b/node_modules/core-js/es/instance/trim.js new file mode 100644 index 0000000..cdd3ed9 --- /dev/null +++ b/node_modules/core-js/es/instance/trim.js @@ -0,0 +1,9 @@ +var trim = require('../string/virtual/trim'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.trim; + return typeof it === 'string' || it === StringPrototype + || (it instanceof String && own === StringPrototype.trim) ? trim : own; +}; diff --git a/node_modules/core-js/es/instance/values.js b/node_modules/core-js/es/instance/values.js new file mode 100644 index 0000000..52c76df --- /dev/null +++ b/node_modules/core-js/es/instance/values.js @@ -0,0 +1,8 @@ +var values = require('../array/virtual/values'); + +var ArrayPrototype = Array.prototype; + +module.exports = function (it) { + var own = it.values; + return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.values) ? values : own; +}; |
