core-js 3.0.0-beta.9 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/es/array/flat-map.js +4 -0
- package/es/array/flat.js +4 -0
- package/es/array/index.js +21 -17
- package/es/array/virtual/flat-map.js +4 -0
- package/es/array/virtual/flat.js +4 -0
- package/es/array/virtual/index.js +7 -2
- package/es/index.js +7 -0
- package/es/instance/bind.js +7 -0
- package/es/instance/code-point-at.js +8 -0
- package/es/instance/concat.js +7 -0
- package/es/instance/copy-within.js +7 -0
- package/es/instance/ends-with.js +8 -0
- package/es/instance/entries.js +7 -0
- package/es/instance/every.js +7 -0
- package/es/instance/fill.js +7 -0
- package/es/instance/filter.js +7 -0
- package/es/instance/find-index.js +7 -0
- package/es/instance/find.js +7 -0
- package/es/instance/flags.js +6 -0
- package/es/instance/flat-map.js +7 -0
- package/es/instance/flat.js +7 -0
- package/es/instance/for-each.js +7 -0
- package/es/instance/includes.js +12 -0
- package/es/instance/index-of.js +7 -0
- package/es/instance/keys.js +7 -0
- package/es/instance/last-index-of.js +7 -0
- package/es/instance/map.js +7 -0
- package/es/instance/pad-end.js +8 -0
- package/es/instance/pad-start.js +8 -0
- package/es/instance/reduce-right.js +7 -0
- package/es/instance/reduce.js +7 -0
- package/es/instance/repeat.js +8 -0
- package/es/instance/reverse.js +7 -0
- package/es/instance/slice.js +7 -0
- package/es/instance/some.js +7 -0
- package/es/instance/sort.js +7 -0
- package/es/instance/splice.js +7 -0
- package/es/instance/starts-with.js +8 -0
- package/es/instance/trim-end.js +8 -0
- package/es/instance/trim-left.js +8 -0
- package/es/instance/trim-right.js +8 -0
- package/es/instance/trim-start.js +8 -0
- package/es/instance/trim.js +8 -0
- package/es/instance/values.js +7 -0
- package/es/object/from-entries.js +4 -0
- package/es/object/index.js +1 -0
- package/es/string/index.js +2 -0
- package/es/string/trim-end.js +3 -0
- package/es/string/trim-left.js +3 -0
- package/es/string/trim-right.js +3 -0
- package/es/string/trim-start.js +3 -0
- package/es/string/virtual/index.js +2 -0
- package/es/string/virtual/trim-end.js +3 -0
- package/es/string/virtual/trim-left.js +3 -0
- package/es/string/virtual/trim-right.js +3 -0
- package/es/string/virtual/trim-start.js +3 -0
- package/features/aggregate-error.js +5 -0
- package/features/array/flat-map.js +1 -4
- package/features/array/flat.js +1 -4
- package/features/array/index.js +0 -4
- package/features/array/virtual/flat-map.js +1 -4
- package/features/array/virtual/flat.js +1 -4
- package/features/array/virtual/index.js +0 -5
- package/features/clear-immediate.js +1 -3
- package/features/index.js +1 -0
- package/features/instance/at.js +8 -0
- package/features/instance/bind.js +1 -0
- package/features/instance/code-point-at.js +1 -0
- package/features/instance/code-points.js +8 -0
- package/features/instance/concat.js +1 -0
- package/features/instance/copy-within.js +1 -0
- package/features/instance/ends-with.js +1 -0
- package/features/instance/entries.js +1 -0
- package/features/instance/every.js +1 -0
- package/features/instance/fill.js +1 -0
- package/features/instance/filter.js +1 -0
- package/features/instance/find-index.js +1 -0
- package/features/instance/find.js +1 -0
- package/features/instance/flags.js +1 -0
- package/features/instance/flat-map.js +1 -0
- package/features/instance/flat.js +1 -0
- package/features/instance/for-each.js +1 -0
- package/features/instance/includes.js +1 -0
- package/features/instance/index-of.js +1 -0
- package/features/instance/keys.js +1 -0
- package/features/instance/last-index-of.js +1 -0
- package/features/instance/map.js +1 -0
- package/features/instance/match-all.js +8 -0
- package/features/instance/pad-end.js +1 -0
- package/features/instance/pad-start.js +1 -0
- package/features/instance/reduce-right.js +1 -0
- package/features/instance/reduce.js +1 -0
- package/features/instance/repeat.js +1 -0
- package/features/instance/replace-all.js +8 -0
- package/features/instance/reverse.js +1 -0
- package/features/instance/slice.js +1 -0
- package/features/instance/some.js +1 -0
- package/features/instance/sort.js +1 -0
- package/features/instance/splice.js +1 -0
- package/features/instance/starts-with.js +1 -0
- package/features/instance/trim-end.js +1 -0
- package/features/instance/trim-left.js +1 -0
- package/features/instance/trim-right.js +1 -0
- package/features/instance/trim-start.js +1 -0
- package/features/instance/trim.js +1 -0
- package/features/instance/values.js +1 -0
- package/features/map/index.js +1 -0
- package/features/map/update.js +4 -0
- package/features/object/from-entries.js +1 -4
- package/features/object/index.js +0 -2
- package/features/promise/any.js +10 -0
- package/features/promise/index.js +2 -0
- package/features/queue-microtask.js +1 -3
- package/features/reflect/delete-property.js +1 -3
- package/features/set-immediate.js +1 -3
- package/features/set-interval.js +1 -3
- package/features/set-timeout.js +1 -3
- package/features/string/index.js +0 -2
- package/features/string/trim-end.js +1 -3
- package/features/string/trim-left.js +1 -3
- package/features/string/trim-right.js +1 -3
- package/features/string/trim-start.js +1 -3
- package/features/string/virtual/index.js +0 -2
- package/features/string/virtual/trim-end.js +1 -3
- package/features/string/virtual/trim-left.js +1 -3
- package/features/string/virtual/trim-right.js +1 -3
- package/features/string/virtual/trim-start.js +1 -3
- package/internals/array-buffer.js +1 -1
- package/internals/export.js +18 -13
- package/internals/global.js +2 -2
- package/internals/internal-state.js +3 -4
- package/internals/microtask.js +7 -4
- package/internals/native-weak-map.js +4 -0
- package/internals/redefine.js +4 -2
- package/internals/shared.js +1 -1
- package/modules/{esnext.array.flat-map.js → es.array.flat-map.js} +0 -0
- package/modules/{esnext.array.flat.js → es.array.flat.js} +0 -0
- package/modules/{esnext.array.unscopables.flat-map.js → es.array.unscopables.flat-map.js} +0 -0
- package/modules/{esnext.array.unscopables.flat.js → es.array.unscopables.flat.js} +0 -0
- package/modules/{esnext.object.from-entries.js → es.object.from-entries.js} +0 -0
- package/modules/es.object.get-own-property-names.js +1 -1
- package/modules/es.promise.js +9 -0
- package/modules/es.string.split.js +2 -2
- package/modules/{esnext.string.trim-end.js → es.string.trim-end.js} +0 -0
- package/modules/{esnext.string.trim-start.js → es.string.trim-start.js} +0 -0
- package/modules/es.weak-map.js +8 -6
- package/modules/esnext.aggregate-error.js +27 -0
- package/modules/esnext.map.delete-all.js +1 -1
- package/modules/esnext.map.every.js +1 -1
- package/modules/esnext.map.filter.js +1 -1
- package/modules/esnext.map.find-key.js +1 -1
- package/modules/esnext.map.find.js +1 -1
- package/modules/esnext.map.group-by.js +8 -3
- package/modules/esnext.map.includes.js +1 -1
- package/modules/esnext.map.key-by.js +5 -2
- package/modules/esnext.map.key-of.js +1 -1
- package/modules/esnext.map.map-keys.js +1 -1
- package/modules/esnext.map.map-values.js +1 -1
- package/modules/esnext.map.merge.js +1 -1
- package/modules/esnext.map.reduce.js +1 -1
- package/modules/esnext.map.some.js +1 -1
- package/modules/esnext.map.update.js +19 -0
- package/modules/esnext.promise.any.js +42 -0
- package/modules/esnext.set.add-all.js +1 -1
- package/modules/esnext.set.delete-all.js +1 -1
- package/modules/esnext.set.every.js +1 -1
- package/modules/esnext.set.filter.js +1 -1
- package/modules/esnext.set.find.js +1 -1
- package/modules/esnext.set.join.js +1 -1
- package/modules/esnext.set.map.js +1 -1
- package/modules/esnext.set.reduce.js +1 -1
- package/modules/esnext.set.some.js +1 -1
- package/modules/esnext.string.match-all.js +2 -2
- package/modules/esnext.string.replace-all.js +13 -4
- package/modules/esnext.weak-map.delete-all.js +1 -1
- package/modules/esnext.weak-set.add-all.js +1 -1
- package/modules/esnext.weak-set.delete-all.js +1 -1
- package/modules/web.immediate.js +2 -1
- package/modules/web.queue-microtask.js +1 -1
- package/modules/web.url.js +1 -1
- package/package.json +1 -1
- package/proposals/collection-methods.js +1 -0
- package/proposals/{richer-keys.js → keys-composition.js} +0 -0
- package/proposals/promise-any.js +2 -0
- package/stable/README.md +1 -0
- package/stable/array/concat.js +1 -0
- package/stable/array/copy-within.js +1 -0
- package/stable/array/entries.js +1 -0
- package/stable/array/every.js +1 -0
- package/stable/array/fill.js +1 -0
- package/stable/array/filter.js +1 -0
- package/stable/array/find-index.js +1 -0
- package/stable/array/find.js +1 -0
- package/stable/array/flat-map.js +1 -0
- package/stable/array/flat.js +1 -0
- package/stable/array/for-each.js +1 -0
- package/stable/array/from.js +1 -0
- package/stable/array/includes.js +1 -0
- package/stable/array/index-of.js +1 -0
- package/stable/array/index.js +1 -0
- package/stable/array/is-array.js +1 -0
- package/stable/array/iterator.js +1 -0
- package/stable/array/join.js +1 -0
- package/stable/array/keys.js +1 -0
- package/stable/array/last-index-of.js +1 -0
- package/stable/array/map.js +1 -0
- package/stable/array/of.js +1 -0
- package/stable/array/reduce-right.js +1 -0
- package/stable/array/reduce.js +1 -0
- package/stable/array/reverse.js +1 -0
- package/stable/array/slice.js +1 -0
- package/stable/array/some.js +1 -0
- package/stable/array/sort.js +1 -0
- package/stable/array/splice.js +1 -0
- package/stable/array/values.js +1 -0
- package/stable/array/virtual/concat.js +1 -0
- package/stable/array/virtual/copy-within.js +1 -0
- package/stable/array/virtual/entries.js +1 -0
- package/stable/array/virtual/every.js +1 -0
- package/stable/array/virtual/fill.js +1 -0
- package/stable/array/virtual/filter.js +1 -0
- package/stable/array/virtual/find-index.js +1 -0
- package/stable/array/virtual/find.js +1 -0
- package/stable/array/virtual/flat-map.js +1 -0
- package/stable/array/virtual/flat.js +1 -0
- package/stable/array/virtual/for-each.js +1 -0
- package/stable/array/virtual/includes.js +1 -0
- package/stable/array/virtual/index-of.js +1 -0
- package/stable/array/virtual/index.js +1 -0
- package/stable/array/virtual/iterator.js +1 -0
- package/stable/array/virtual/join.js +1 -0
- package/stable/array/virtual/keys.js +1 -0
- package/stable/array/virtual/last-index-of.js +1 -0
- package/stable/array/virtual/map.js +1 -0
- package/stable/array/virtual/reduce-right.js +1 -0
- package/stable/array/virtual/reduce.js +1 -0
- package/stable/array/virtual/reverse.js +1 -0
- package/stable/array/virtual/slice.js +1 -0
- package/stable/array/virtual/some.js +1 -0
- package/stable/array/virtual/sort.js +1 -0
- package/stable/array/virtual/splice.js +1 -0
- package/stable/array/virtual/values.js +1 -0
- package/stable/array-buffer/constructor.js +1 -0
- package/stable/array-buffer/index.js +1 -0
- package/stable/array-buffer/is-view.js +1 -0
- package/stable/array-buffer/slice.js +1 -0
- package/stable/clear-immediate.js +3 -0
- package/stable/data-view/index.js +1 -0
- package/stable/date/index.js +1 -0
- package/stable/date/now.js +1 -0
- package/stable/date/to-iso-string.js +1 -0
- package/stable/date/to-json.js +1 -0
- package/stable/date/to-primitive.js +1 -0
- package/stable/date/to-string.js +1 -0
- package/stable/dom-collections/for-each.js +3 -0
- package/stable/dom-collections/index.js +11 -0
- package/stable/dom-collections/iterator.js +3 -0
- package/stable/function/bind.js +1 -0
- package/stable/function/has-instance.js +1 -0
- package/stable/function/index.js +1 -0
- package/stable/function/name.js +1 -0
- package/stable/function/virtual/bind.js +1 -0
- package/stable/function/virtual/index.js +1 -0
- package/stable/global-this.js +3 -0
- package/stable/index.js +4 -0
- package/stable/instance/bind.js +1 -0
- package/stable/instance/code-point-at.js +1 -0
- package/stable/instance/concat.js +1 -0
- package/stable/instance/copy-within.js +1 -0
- package/stable/instance/ends-with.js +1 -0
- package/stable/instance/entries.js +16 -0
- package/stable/instance/every.js +1 -0
- package/stable/instance/fill.js +1 -0
- package/stable/instance/filter.js +1 -0
- package/stable/instance/find-index.js +1 -0
- package/stable/instance/find.js +1 -0
- package/stable/instance/flags.js +1 -0
- package/stable/instance/flat-map.js +1 -0
- package/stable/instance/flat.js +1 -0
- package/stable/instance/for-each.js +16 -0
- package/stable/instance/includes.js +1 -0
- package/stable/instance/index-of.js +1 -0
- package/stable/instance/keys.js +16 -0
- package/stable/instance/last-index-of.js +1 -0
- package/stable/instance/map.js +1 -0
- package/stable/instance/pad-end.js +1 -0
- package/stable/instance/pad-start.js +1 -0
- package/stable/instance/reduce-right.js +1 -0
- package/stable/instance/reduce.js +1 -0
- package/stable/instance/repeat.js +1 -0
- package/stable/instance/reverse.js +1 -0
- package/stable/instance/slice.js +1 -0
- package/stable/instance/some.js +1 -0
- package/stable/instance/sort.js +1 -0
- package/stable/instance/splice.js +1 -0
- package/stable/instance/starts-with.js +1 -0
- package/stable/instance/trim-end.js +1 -0
- package/stable/instance/trim-left.js +1 -0
- package/stable/instance/trim-right.js +1 -0
- package/stable/instance/trim-start.js +1 -0
- package/stable/instance/trim.js +1 -0
- package/stable/instance/values.js +16 -0
- package/stable/json/index.js +1 -0
- package/stable/json/stringify.js +1 -0
- package/stable/json/to-string-tag.js +1 -0
- package/stable/map/index.js +1 -0
- package/stable/math/acosh.js +1 -0
- package/stable/math/asinh.js +1 -0
- package/stable/math/atanh.js +1 -0
- package/stable/math/cbrt.js +1 -0
- package/stable/math/clz32.js +1 -0
- package/stable/math/cosh.js +1 -0
- package/stable/math/expm1.js +1 -0
- package/stable/math/fround.js +1 -0
- package/stable/math/hypot.js +1 -0
- package/stable/math/imul.js +1 -0
- package/stable/math/index.js +1 -0
- package/stable/math/log10.js +1 -0
- package/stable/math/log1p.js +1 -0
- package/stable/math/log2.js +1 -0
- package/stable/math/sign.js +1 -0
- package/stable/math/sinh.js +1 -0
- package/stable/math/tanh.js +1 -0
- package/stable/math/to-string-tag.js +1 -0
- package/stable/math/trunc.js +1 -0
- package/stable/number/constructor.js +1 -0
- package/stable/number/epsilon.js +1 -0
- package/stable/number/index.js +1 -0
- package/stable/number/is-finite.js +1 -0
- package/stable/number/is-integer.js +1 -0
- package/stable/number/is-nan.js +1 -0
- package/stable/number/is-safe-integer.js +1 -0
- package/stable/number/max-safe-integer.js +1 -0
- package/stable/number/min-safe-integer.js +1 -0
- package/stable/number/parse-float.js +1 -0
- package/stable/number/parse-int.js +1 -0
- package/stable/number/to-fixed.js +1 -0
- package/stable/number/to-precision.js +1 -0
- package/stable/number/virtual/index.js +1 -0
- package/stable/number/virtual/to-fixed.js +1 -0
- package/stable/number/virtual/to-precision.js +1 -0
- package/stable/object/assign.js +1 -0
- package/stable/object/create.js +1 -0
- package/stable/object/define-getter.js +1 -0
- package/stable/object/define-properties.js +1 -0
- package/stable/object/define-property.js +1 -0
- package/stable/object/define-setter.js +1 -0
- package/stable/object/entries.js +1 -0
- package/stable/object/freeze.js +1 -0
- package/stable/object/from-entries.js +1 -0
- package/stable/object/get-own-property-descriptor.js +1 -0
- package/stable/object/get-own-property-descriptors.js +1 -0
- package/stable/object/get-own-property-names.js +1 -0
- package/stable/object/get-own-property-symbols.js +1 -0
- package/stable/object/get-prototype-of.js +1 -0
- package/stable/object/index.js +1 -0
- package/stable/object/is-extensible.js +1 -0
- package/stable/object/is-frozen.js +1 -0
- package/stable/object/is-sealed.js +1 -0
- package/stable/object/is.js +1 -0
- package/stable/object/keys.js +1 -0
- package/stable/object/lookup-getter.js +1 -0
- package/stable/object/lookup-setter.js +1 -0
- package/stable/object/prevent-extensions.js +1 -0
- package/stable/object/seal.js +1 -0
- package/stable/object/set-prototype-of.js +1 -0
- package/stable/object/to-string.js +1 -0
- package/stable/object/values.js +1 -0
- package/stable/parse-float.js +1 -0
- package/stable/parse-int.js +1 -0
- package/stable/promise/finally.js +1 -0
- package/stable/promise/index.js +1 -0
- package/stable/queue-microtask.js +1 -0
- package/stable/reflect/apply.js +1 -0
- package/stable/reflect/construct.js +1 -0
- package/stable/reflect/define-property.js +1 -0
- package/stable/reflect/delete-property.js +1 -0
- package/stable/reflect/get-own-property-descriptor.js +1 -0
- package/stable/reflect/get-prototype-of.js +1 -0
- package/stable/reflect/get.js +1 -0
- package/stable/reflect/has.js +1 -0
- package/stable/reflect/index.js +1 -0
- package/stable/reflect/is-extensible.js +1 -0
- package/stable/reflect/own-keys.js +1 -0
- package/stable/reflect/prevent-extensions.js +1 -0
- package/stable/reflect/set-prototype-of.js +1 -0
- package/stable/reflect/set.js +1 -0
- package/stable/regexp/constructor.js +1 -0
- package/stable/regexp/flags.js +1 -0
- package/stable/regexp/index.js +1 -0
- package/stable/regexp/match.js +1 -0
- package/stable/regexp/replace.js +1 -0
- package/stable/regexp/search.js +1 -0
- package/stable/regexp/split.js +1 -0
- package/stable/regexp/to-string.js +1 -0
- package/stable/set/index.js +1 -0
- package/stable/set-immediate.js +3 -0
- package/stable/set-interval.js +3 -0
- package/stable/set-timeout.js +3 -0
- package/stable/string/anchor.js +1 -0
- package/stable/string/big.js +1 -0
- package/stable/string/blink.js +1 -0
- package/stable/string/bold.js +1 -0
- package/stable/string/code-point-at.js +1 -0
- package/stable/string/ends-with.js +1 -0
- package/stable/string/fixed.js +1 -0
- package/stable/string/fontcolor.js +1 -0
- package/stable/string/fontsize.js +1 -0
- package/stable/string/from-code-point.js +1 -0
- package/stable/string/includes.js +1 -0
- package/stable/string/index.js +1 -0
- package/stable/string/italics.js +1 -0
- package/stable/string/iterator.js +1 -0
- package/stable/string/link.js +1 -0
- package/stable/string/match.js +1 -0
- package/stable/string/pad-end.js +1 -0
- package/stable/string/pad-start.js +1 -0
- package/stable/string/raw.js +1 -0
- package/stable/string/repeat.js +1 -0
- package/stable/string/replace.js +1 -0
- package/stable/string/search.js +1 -0
- package/stable/string/small.js +1 -0
- package/stable/string/split.js +1 -0
- package/stable/string/starts-with.js +1 -0
- package/stable/string/strike.js +1 -0
- package/stable/string/sub.js +1 -0
- package/stable/string/sup.js +1 -0
- package/stable/string/trim-end.js +1 -0
- package/stable/string/trim-left.js +1 -0
- package/stable/string/trim-right.js +1 -0
- package/stable/string/trim-start.js +1 -0
- package/stable/string/trim.js +1 -0
- package/stable/string/virtual/anchor.js +1 -0
- package/stable/string/virtual/big.js +1 -0
- package/stable/string/virtual/blink.js +1 -0
- package/stable/string/virtual/bold.js +1 -0
- package/stable/string/virtual/code-point-at.js +1 -0
- package/stable/string/virtual/ends-with.js +1 -0
- package/stable/string/virtual/fixed.js +1 -0
- package/stable/string/virtual/fontcolor.js +1 -0
- package/stable/string/virtual/fontsize.js +1 -0
- package/stable/string/virtual/includes.js +1 -0
- package/stable/string/virtual/index.js +1 -0
- package/stable/string/virtual/italics.js +1 -0
- package/stable/string/virtual/iterator.js +1 -0
- package/stable/string/virtual/link.js +1 -0
- package/stable/string/virtual/pad-end.js +1 -0
- package/stable/string/virtual/pad-start.js +1 -0
- package/stable/string/virtual/repeat.js +1 -0
- package/stable/string/virtual/small.js +1 -0
- package/stable/string/virtual/starts-with.js +1 -0
- package/stable/string/virtual/strike.js +1 -0
- package/stable/string/virtual/sub.js +1 -0
- package/stable/string/virtual/sup.js +1 -0
- package/stable/string/virtual/trim-end.js +1 -0
- package/stable/string/virtual/trim-left.js +1 -0
- package/stable/string/virtual/trim-right.js +1 -0
- package/stable/string/virtual/trim-start.js +1 -0
- package/stable/string/virtual/trim.js +1 -0
- package/stable/symbol/async-iterator.js +1 -0
- package/stable/symbol/description.js +1 -0
- package/stable/symbol/for.js +1 -0
- package/stable/symbol/has-instance.js +1 -0
- package/stable/symbol/index.js +1 -0
- package/stable/symbol/is-concat-spreadable.js +1 -0
- package/stable/symbol/iterator.js +1 -0
- package/stable/symbol/key-for.js +1 -0
- package/stable/symbol/match.js +1 -0
- package/stable/symbol/replace.js +1 -0
- package/stable/symbol/search.js +1 -0
- package/stable/symbol/species.js +1 -0
- package/stable/symbol/split.js +1 -0
- package/stable/symbol/to-primitive.js +1 -0
- package/stable/symbol/to-string-tag.js +1 -0
- package/stable/symbol/unscopables.js +1 -0
- package/stable/typed-array/copy-within.js +1 -0
- package/stable/typed-array/entries.js +1 -0
- package/stable/typed-array/every.js +1 -0
- package/stable/typed-array/fill.js +1 -0
- package/stable/typed-array/filter.js +1 -0
- package/stable/typed-array/find-index.js +1 -0
- package/stable/typed-array/find.js +1 -0
- package/stable/typed-array/float32-array.js +1 -0
- package/stable/typed-array/float64-array.js +1 -0
- package/stable/typed-array/for-each.js +1 -0
- package/stable/typed-array/from.js +1 -0
- package/stable/typed-array/includes.js +1 -0
- package/stable/typed-array/index-of.js +1 -0
- package/stable/typed-array/index.js +1 -0
- package/stable/typed-array/int16-array.js +1 -0
- package/stable/typed-array/int32-array.js +1 -0
- package/stable/typed-array/int8-array.js +1 -0
- package/stable/typed-array/iterator.js +1 -0
- package/stable/typed-array/join.js +1 -0
- package/stable/typed-array/keys.js +1 -0
- package/stable/typed-array/last-index-of.js +1 -0
- package/stable/typed-array/map.js +1 -0
- package/stable/typed-array/of.js +1 -0
- package/stable/typed-array/reduce-right.js +1 -0
- package/stable/typed-array/reduce.js +1 -0
- package/stable/typed-array/reverse.js +1 -0
- package/stable/typed-array/set.js +1 -0
- package/stable/typed-array/slice.js +1 -0
- package/stable/typed-array/some.js +1 -0
- package/stable/typed-array/sort.js +1 -0
- package/stable/typed-array/subarray.js +1 -0
- package/stable/typed-array/to-locale-string.js +1 -0
- package/stable/typed-array/to-string.js +1 -0
- package/stable/typed-array/uint16-array.js +1 -0
- package/stable/typed-array/uint32-array.js +1 -0
- package/stable/typed-array/uint8-array.js +1 -0
- package/stable/typed-array/uint8-clamped-array.js +1 -0
- package/stable/typed-array/values.js +1 -0
- package/stable/url/index.js +1 -0
- package/stable/url/to-json.js +1 -0
- package/stable/url-search-params/index.js +1 -0
- package/stable/weak-map/index.js +1 -0
- package/stable/weak-set/index.js +1 -0
- package/stage/0.js +1 -0
- package/stage/1.js +1 -2
- package/stage/2.js +1 -0
- package/stage/3.js +0 -3
- package/proposals/array-flat-and-flat-map.js +0 -4
- package/proposals/object-from-entries.js +0 -2
- package/proposals/string-trim-start-end.js +0 -2
package/README.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# core-js
|
|
2
2
|
|
|
3
|
+
[](https://gitter.im/zloirock/core-js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://www.npmjs.com/package/core-js) [](http://npm-stat.com/charts.html?package=core-js&author=&from=2014-11-18) [](https://travis-ci.org/zloirock/core-js) [](https://david-dm.org/zloirock/core-js?type=dev)
|
|
4
|
+
|
|
5
|
+
## As advertising: the author is looking for a good job -)
|
|
6
|
+
|
|
7
|
+
## [core-js@3, babel and a look into the future](https://github.com/zloirock/core-js/tree/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md)
|
|
8
|
+
|
|
9
|
+
## Open Collective Sponsors
|
|
10
|
+
|
|
11
|
+
[**Become a sponsor**](https://opencollective.com/core-js#sponsor) and get your logo with a link to your site on our README on GitHub and NPM.
|
|
12
|
+
|
|
13
|
+
<a href="https://opencollective.com/core-js/sponsor/0/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/0/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/1/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/1/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/2/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/2/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/3/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/3/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/4/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/4/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/5/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/5/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/6/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/6/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/7/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/7/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/8/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/8/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/9/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/9/avatar.svg"></a>
|
|
14
|
+
|
|
15
|
+
## Patreon Sponsors
|
|
16
|
+
|
|
17
|
+
[**Become a sponsor**](https://www.patreon.com/zloirock) and get your logo with a link to your site on our README on GitHub and NPM.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
3
21
|
Modular standard library for JavaScript. Includes polyfills for [ECMAScript up to 2019](https://github.com/zloirock/core-js#ecmascript): [promises](https://github.com/zloirock/core-js#ecmascript-promise), [symbols](https://github.com/zloirock/core-js#ecmascript-symbol), [collections](https://github.com/zloirock/core-js#ecmascript-collections), iterators, [typed arrays](https://github.com/zloirock/core-js#ecmascript-typed-arrays), many other features, [ECMAScript proposals](https://github.com/zloirock/core-js#ecmascript-proposals), [some cross-platform WHATWG / W3C features and proposals](#web-standards) like [`URL`](https://github.com/zloirock/core-js#url-and-urlsearchparams). You can load only required features or use it without global namespace pollution.
|
|
4
22
|
|
|
5
23
|
[*Example*](http://goo.gl/a2xexl):
|
package/es/array/flat.js
ADDED
package/es/array/index.js
CHANGED
|
@@ -1,28 +1,32 @@
|
|
|
1
1
|
require('../../modules/es.string.iterator');
|
|
2
|
-
require('../../modules/es.array.concat');
|
|
3
|
-
require('../../modules/es.array.is-array');
|
|
4
2
|
require('../../modules/es.array.from');
|
|
3
|
+
require('../../modules/es.array.is-array');
|
|
5
4
|
require('../../modules/es.array.of');
|
|
6
|
-
require('../../modules/es.array.
|
|
7
|
-
require('../../modules/es.array.
|
|
8
|
-
require('../../modules/es.array.
|
|
9
|
-
require('../../modules/es.array.
|
|
5
|
+
require('../../modules/es.array.concat');
|
|
6
|
+
require('../../modules/es.array.copy-within');
|
|
7
|
+
require('../../modules/es.array.every');
|
|
8
|
+
require('../../modules/es.array.fill');
|
|
9
|
+
require('../../modules/es.array.filter');
|
|
10
|
+
require('../../modules/es.array.find');
|
|
11
|
+
require('../../modules/es.array.find-index');
|
|
12
|
+
require('../../modules/es.array.flat');
|
|
13
|
+
require('../../modules/es.array.flat-map');
|
|
10
14
|
require('../../modules/es.array.for-each');
|
|
15
|
+
require('../../modules/es.array.includes');
|
|
16
|
+
require('../../modules/es.array.index-of');
|
|
17
|
+
require('../../modules/es.array.iterator');
|
|
18
|
+
require('../../modules/es.array.join');
|
|
19
|
+
require('../../modules/es.array.last-index-of');
|
|
11
20
|
require('../../modules/es.array.map');
|
|
12
|
-
require('../../modules/es.array.filter');
|
|
13
|
-
require('../../modules/es.array.some');
|
|
14
|
-
require('../../modules/es.array.every');
|
|
15
21
|
require('../../modules/es.array.reduce');
|
|
16
22
|
require('../../modules/es.array.reduce-right');
|
|
17
23
|
require('../../modules/es.array.reverse');
|
|
18
|
-
require('../../modules/es.array.
|
|
19
|
-
require('../../modules/es.array.
|
|
20
|
-
require('../../modules/es.array.
|
|
21
|
-
require('../../modules/es.array.fill');
|
|
22
|
-
require('../../modules/es.array.find');
|
|
23
|
-
require('../../modules/es.array.find-index');
|
|
24
|
+
require('../../modules/es.array.slice');
|
|
25
|
+
require('../../modules/es.array.some');
|
|
26
|
+
require('../../modules/es.array.sort');
|
|
24
27
|
require('../../modules/es.array.species');
|
|
25
|
-
require('../../modules/es.array.
|
|
26
|
-
require('../../modules/es.array.
|
|
28
|
+
require('../../modules/es.array.splice');
|
|
29
|
+
require('../../modules/es.array.unscopables.flat');
|
|
30
|
+
require('../../modules/es.array.unscopables.flat-map');
|
|
27
31
|
|
|
28
32
|
module.exports = require('../../internals/path').Array;
|
|
@@ -5,19 +5,24 @@ require('../../../modules/es.array.fill');
|
|
|
5
5
|
require('../../../modules/es.array.filter');
|
|
6
6
|
require('../../../modules/es.array.find');
|
|
7
7
|
require('../../../modules/es.array.find-index');
|
|
8
|
+
require('../../../modules/es.array.flat');
|
|
9
|
+
require('../../../modules/es.array.flat-map');
|
|
8
10
|
require('../../../modules/es.array.for-each');
|
|
9
11
|
require('../../../modules/es.array.includes');
|
|
10
12
|
require('../../../modules/es.array.index-of');
|
|
13
|
+
require('../../../modules/es.array.iterator');
|
|
11
14
|
require('../../../modules/es.array.join');
|
|
12
15
|
require('../../../modules/es.array.last-index-of');
|
|
13
16
|
require('../../../modules/es.array.map');
|
|
14
17
|
require('../../../modules/es.array.reduce');
|
|
15
18
|
require('../../../modules/es.array.reduce-right');
|
|
19
|
+
require('../../../modules/es.array.reverse');
|
|
16
20
|
require('../../../modules/es.array.slice');
|
|
17
21
|
require('../../../modules/es.array.some');
|
|
18
22
|
require('../../../modules/es.array.sort');
|
|
19
|
-
require('../../../modules/es.array.splice');
|
|
20
23
|
require('../../../modules/es.array.species');
|
|
21
|
-
require('../../../modules/es.array.
|
|
24
|
+
require('../../../modules/es.array.splice');
|
|
25
|
+
require('../../../modules/es.array.unscopables.flat');
|
|
26
|
+
require('../../../modules/es.array.unscopables.flat-map');
|
|
22
27
|
|
|
23
28
|
module.exports = require('../../../internals/entry-virtual')('Array');
|
package/es/index.js
CHANGED
|
@@ -18,6 +18,7 @@ require('../modules/es.object.define-property');
|
|
|
18
18
|
require('../modules/es.object.define-properties');
|
|
19
19
|
require('../modules/es.object.entries');
|
|
20
20
|
require('../modules/es.object.freeze');
|
|
21
|
+
require('../modules/es.object.from-entries');
|
|
21
22
|
require('../modules/es.object.get-own-property-descriptor');
|
|
22
23
|
require('../modules/es.object.get-own-property-descriptors');
|
|
23
24
|
require('../modules/es.object.get-own-property-names');
|
|
@@ -49,6 +50,8 @@ require('../modules/es.array.fill');
|
|
|
49
50
|
require('../modules/es.array.filter');
|
|
50
51
|
require('../modules/es.array.find');
|
|
51
52
|
require('../modules/es.array.find-index');
|
|
53
|
+
require('../modules/es.array.flat');
|
|
54
|
+
require('../modules/es.array.flat-map');
|
|
52
55
|
require('../modules/es.array.for-each');
|
|
53
56
|
require('../modules/es.array.includes');
|
|
54
57
|
require('../modules/es.array.index-of');
|
|
@@ -63,6 +66,8 @@ require('../modules/es.array.some');
|
|
|
63
66
|
require('../modules/es.array.sort');
|
|
64
67
|
require('../modules/es.array.splice');
|
|
65
68
|
require('../modules/es.array.species');
|
|
69
|
+
require('../modules/es.array.unscopables.flat');
|
|
70
|
+
require('../modules/es.array.unscopables.flat-map');
|
|
66
71
|
require('../modules/es.array.iterator');
|
|
67
72
|
require('../modules/es.string.from-code-point');
|
|
68
73
|
require('../modules/es.string.raw');
|
|
@@ -78,6 +83,8 @@ require('../modules/es.string.search');
|
|
|
78
83
|
require('../modules/es.string.split');
|
|
79
84
|
require('../modules/es.string.starts-with');
|
|
80
85
|
require('../modules/es.string.trim');
|
|
86
|
+
require('../modules/es.string.trim-start');
|
|
87
|
+
require('../modules/es.string.trim-end');
|
|
81
88
|
require('../modules/es.string.iterator');
|
|
82
89
|
require('../modules/es.string.anchor');
|
|
83
90
|
require('../modules/es.string.big');
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var codePointAt = require('../string/virtual/code-point-at');
|
|
2
|
+
var StringPrototype = String.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.codePointAt;
|
|
6
|
+
return typeof it === 'string' || it === StringPrototype
|
|
7
|
+
|| (it instanceof String && own === StringPrototype.codePointAt) ? codePointAt : own;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var copyWithin = require('../array/virtual/copy-within');
|
|
2
|
+
var ArrayPrototype = Array.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.copyWithin;
|
|
6
|
+
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.copyWithin) ? copyWithin : own;
|
|
7
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var endsWith = require('../string/virtual/ends-with');
|
|
2
|
+
var StringPrototype = String.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.endsWith;
|
|
6
|
+
return typeof it === 'string' || it === StringPrototype
|
|
7
|
+
|| (it instanceof String && own === StringPrototype.endsWith) ? endsWith : own;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var findIndex = require('../array/virtual/find-index');
|
|
2
|
+
var ArrayPrototype = Array.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.findIndex;
|
|
6
|
+
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.findIndex) ? findIndex : own;
|
|
7
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var arrayIncludes = require('../array/virtual/includes');
|
|
2
|
+
var stringIncludes = require('../string/virtual/includes');
|
|
3
|
+
var ArrayPrototype = Array.prototype;
|
|
4
|
+
var StringPrototype = String.prototype;
|
|
5
|
+
|
|
6
|
+
module.exports = function (it) {
|
|
7
|
+
var own = it.includes;
|
|
8
|
+
if (it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.includes)) return arrayIncludes;
|
|
9
|
+
if (typeof it === 'string' || it === StringPrototype || (it instanceof String && own === StringPrototype.includes)) {
|
|
10
|
+
return stringIncludes;
|
|
11
|
+
} return own;
|
|
12
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var lastIndexOf = require('../array/virtual/last-index-of');
|
|
2
|
+
var ArrayPrototype = Array.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.lastIndexOf;
|
|
6
|
+
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.lastIndexOf) ? lastIndexOf : own;
|
|
7
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var padEnd = require('../string/virtual/pad-end');
|
|
2
|
+
var StringPrototype = String.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.padEnd;
|
|
6
|
+
return typeof it === 'string' || it === StringPrototype
|
|
7
|
+
|| (it instanceof String && own === StringPrototype.padEnd) ? padEnd : own;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var padStart = require('../string/virtual/pad-start');
|
|
2
|
+
var StringPrototype = String.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.padStart;
|
|
6
|
+
return typeof it === 'string' || it === StringPrototype
|
|
7
|
+
|| (it instanceof String && own === StringPrototype.padStart) ? padStart : own;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var reduceRight = require('../array/virtual/reduce-right');
|
|
2
|
+
var ArrayPrototype = Array.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.reduceRight;
|
|
6
|
+
return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.reduceRight) ? reduceRight : own;
|
|
7
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var repeat = require('../string/virtual/repeat');
|
|
2
|
+
var StringPrototype = String.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.repeat;
|
|
6
|
+
return typeof it === 'string' || it === StringPrototype
|
|
7
|
+
|| (it instanceof String && own === StringPrototype.repeat) ? repeat : own;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var startsWith = require('../string/virtual/starts-with');
|
|
2
|
+
var StringPrototype = String.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.startsWith;
|
|
6
|
+
return typeof it === 'string' || it === StringPrototype
|
|
7
|
+
|| (it instanceof String && own === StringPrototype.startsWith) ? startsWith : own;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var trimEnd = require('../string/virtual/trim-end');
|
|
2
|
+
var StringPrototype = String.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.trimEnd;
|
|
6
|
+
return typeof it === 'string' || it === StringPrototype
|
|
7
|
+
|| (it instanceof String && own === StringPrototype.trimEnd) ? trimEnd : own;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var trimLeft = require('../string/virtual/trim-left');
|
|
2
|
+
var StringPrototype = String.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.trimLeft;
|
|
6
|
+
return typeof it === 'string' || it === StringPrototype
|
|
7
|
+
|| (it instanceof String && own === StringPrototype.trimLeft) ? trimLeft : own;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var trimRight = require('../string/virtual/trim-right');
|
|
2
|
+
var StringPrototype = String.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.trimRight;
|
|
6
|
+
return typeof it === 'string' || it === StringPrototype
|
|
7
|
+
|| (it instanceof String && own === StringPrototype.trimRight) ? trimRight : own;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var trimStart = require('../string/virtual/trim-start');
|
|
2
|
+
var StringPrototype = String.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.trimStart;
|
|
6
|
+
return typeof it === 'string' || it === StringPrototype
|
|
7
|
+
|| (it instanceof String && own === StringPrototype.trimStart) ? trimStart : own;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var trim = require('../string/virtual/trim');
|
|
2
|
+
var StringPrototype = String.prototype;
|
|
3
|
+
|
|
4
|
+
module.exports = function (it) {
|
|
5
|
+
var own = it.trim;
|
|
6
|
+
return typeof it === 'string' || it === StringPrototype
|
|
7
|
+
|| (it instanceof String && own === StringPrototype.trim) ? trim : own;
|
|
8
|
+
};
|
package/es/object/index.js
CHANGED
|
@@ -5,6 +5,7 @@ require('../../modules/es.object.define-property');
|
|
|
5
5
|
require('../../modules/es.object.define-properties');
|
|
6
6
|
require('../../modules/es.object.entries');
|
|
7
7
|
require('../../modules/es.object.freeze');
|
|
8
|
+
require('../../modules/es.object.from-entries');
|
|
8
9
|
require('../../modules/es.object.get-own-property-descriptor');
|
|
9
10
|
require('../../modules/es.object.get-own-property-descriptors');
|
|
10
11
|
require('../../modules/es.object.get-own-property-names');
|
package/es/string/index.js
CHANGED
|
@@ -12,6 +12,8 @@ require('../../modules/es.string.search');
|
|
|
12
12
|
require('../../modules/es.string.split');
|
|
13
13
|
require('../../modules/es.string.starts-with');
|
|
14
14
|
require('../../modules/es.string.trim');
|
|
15
|
+
require('../../modules/es.string.trim-start');
|
|
16
|
+
require('../../modules/es.string.trim-end');
|
|
15
17
|
require('../../modules/es.string.iterator');
|
|
16
18
|
require('../../modules/es.string.anchor');
|
|
17
19
|
require('../../modules/es.string.big');
|
|
@@ -10,6 +10,8 @@ require('../../../modules/es.string.search');
|
|
|
10
10
|
require('../../../modules/es.string.split');
|
|
11
11
|
require('../../../modules/es.string.starts-with');
|
|
12
12
|
require('../../../modules/es.string.trim');
|
|
13
|
+
require('../../../modules/es.string.trim-start');
|
|
14
|
+
require('../../../modules/es.string.trim-end');
|
|
13
15
|
require('../../../modules/es.string.iterator');
|
|
14
16
|
require('../../../modules/es.string.anchor');
|
|
15
17
|
require('../../../modules/es.string.big');
|
package/features/array/flat.js
CHANGED