core-js 2.2.2 → 2.5.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/CHANGELOG.md +345 -249
- package/Gruntfile.js +2 -1
- package/README.md +472 -165
- package/bower.json +1 -1
- package/build/Gruntfile.ls +4 -2
- package/build/build.ls +3 -3
- package/build/config.js +30 -5
- package/build/index.js +4 -4
- package/client/core.js +7975 -6662
- package/client/core.min.js +5 -5
- package/client/core.min.js.map +1 -1
- package/client/library.js +7489 -6225
- package/client/library.min.js +5 -5
- package/client/library.min.js.map +1 -1
- package/client/shim.js +7634 -6357
- package/client/shim.min.js +5 -5
- package/client/shim.min.js.map +1 -1
- package/core/_.js +1 -1
- package/core/dict.js +1 -1
- package/core/number.js +1 -1
- package/core/regexp.js +1 -1
- package/core/string.js +1 -1
- package/es5/index.js +1 -1
- package/es6/array.js +1 -1
- package/es6/date.js +1 -1
- package/es6/function.js +1 -1
- package/es6/index.js +1 -1
- package/es6/map.js +1 -1
- package/es6/math.js +1 -1
- package/es6/number.js +1 -1
- package/es6/object.js +1 -1
- package/es6/parse-float.js +1 -1
- package/es6/parse-int.js +1 -1
- package/es6/promise.js +1 -1
- package/es6/reflect.js +1 -1
- package/es6/regexp.js +1 -1
- package/es6/set.js +1 -1
- package/es6/string.js +1 -1
- package/es6/symbol.js +1 -1
- package/es6/typed.js +1 -1
- package/es6/weak-map.js +1 -1
- package/es6/weak-set.js +1 -1
- package/es7/array.js +3 -1
- package/es7/asap.js +2 -0
- package/es7/error.js +1 -1
- package/es7/global.js +2 -0
- package/es7/index.js +24 -0
- package/es7/map.js +3 -1
- package/es7/math.js +8 -0
- package/es7/object.js +1 -1
- package/es7/observable.js +7 -0
- package/es7/promise.js +3 -0
- package/es7/set.js +3 -1
- package/es7/symbol.js +3 -0
- package/es7/system.js +1 -1
- package/es7/weak-map.js +3 -0
- package/es7/weak-set.js +3 -0
- package/fn/_.js +1 -1
- package/fn/array/concat.js +2 -2
- package/fn/array/copy-within.js +1 -1
- package/fn/array/entries.js +1 -1
- package/fn/array/every.js +1 -1
- package/fn/array/fill.js +1 -1
- package/fn/array/filter.js +1 -1
- package/fn/array/find-index.js +1 -1
- package/fn/array/find.js +1 -1
- package/fn/array/flat-map.js +2 -0
- package/fn/array/flatten.js +2 -0
- package/fn/array/for-each.js +1 -1
- package/fn/array/from.js +1 -1
- package/fn/array/includes.js +1 -1
- package/fn/array/index-of.js +1 -1
- package/fn/array/index.js +3 -1
- package/fn/array/is-array.js +1 -1
- package/fn/array/iterator.js +1 -1
- package/fn/array/join.js +1 -1
- package/fn/array/keys.js +1 -1
- package/fn/array/last-index-of.js +1 -1
- package/fn/array/map.js +1 -1
- package/fn/array/of.js +1 -1
- package/fn/array/pop.js +2 -2
- package/fn/array/push.js +2 -2
- package/fn/array/reduce-right.js +1 -1
- package/fn/array/reduce.js +1 -1
- package/fn/array/reverse.js +2 -2
- package/fn/array/shift.js +2 -2
- package/fn/array/slice.js +1 -1
- package/fn/array/some.js +1 -1
- package/fn/array/sort.js +1 -1
- package/fn/array/splice.js +2 -2
- package/fn/array/unshift.js +2 -2
- package/fn/array/values.js +1 -1
- package/fn/array/virtual/copy-within.js +1 -1
- package/fn/array/virtual/entries.js +1 -1
- package/fn/array/virtual/every.js +1 -1
- package/fn/array/virtual/fill.js +1 -1
- package/fn/array/virtual/filter.js +1 -1
- package/fn/array/virtual/find-index.js +1 -1
- package/fn/array/virtual/find.js +1 -1
- package/fn/array/virtual/flat-map.js +2 -0
- package/fn/array/virtual/flatten.js +2 -0
- package/fn/array/virtual/for-each.js +1 -1
- package/fn/array/virtual/includes.js +1 -1
- package/fn/array/virtual/index-of.js +1 -1
- package/fn/array/virtual/index.js +1 -1
- package/fn/array/virtual/iterator.js +1 -1
- package/fn/array/virtual/join.js +1 -1
- package/fn/array/virtual/keys.js +1 -1
- package/fn/array/virtual/last-index-of.js +1 -1
- package/fn/array/virtual/map.js +1 -1
- package/fn/array/virtual/reduce-right.js +1 -1
- package/fn/array/virtual/reduce.js +1 -1
- package/fn/array/virtual/slice.js +1 -1
- package/fn/array/virtual/some.js +1 -1
- package/fn/array/virtual/sort.js +1 -1
- package/fn/array/virtual/values.js +1 -1
- package/fn/asap.js +2 -0
- package/fn/clear-immediate.js +1 -1
- package/fn/date/index.js +1 -1
- package/fn/date/now.js +1 -1
- package/fn/date/to-iso-string.js +1 -1
- package/fn/date/to-json.js +1 -1
- package/fn/date/to-primitive.js +2 -2
- package/fn/date/to-string.js +4 -4
- package/fn/dict.js +1 -1
- package/fn/dom-collections/index.js +4 -4
- package/fn/dom-collections/iterator.js +1 -1
- package/fn/error/index.js +1 -1
- package/fn/error/is-error.js +1 -1
- package/fn/function/bind.js +1 -1
- package/fn/function/has-instance.js +1 -1
- package/fn/function/name.js +1 -1
- package/fn/function/part.js +1 -1
- package/fn/function/virtual/bind.js +1 -1
- package/fn/function/virtual/index.js +1 -1
- package/fn/function/virtual/part.js +1 -1
- package/fn/get-iterator-method.js +1 -1
- package/fn/get-iterator.js +1 -1
- package/fn/global.js +2 -0
- package/fn/is-iterable.js +1 -1
- package/fn/json/index.js +1 -1
- package/fn/json/stringify.js +4 -4
- package/fn/map/from.js +8 -0
- package/fn/map/index.js +8 -0
- package/fn/map/of.js +8 -0
- package/fn/map.js +3 -1
- package/fn/math/acosh.js +1 -1
- package/fn/math/asinh.js +1 -1
- package/fn/math/atanh.js +1 -1
- package/fn/math/cbrt.js +1 -1
- package/fn/math/clamp.js +2 -0
- package/fn/math/clz32.js +1 -1
- package/fn/math/cosh.js +1 -1
- package/fn/math/deg-per-rad.js +2 -0
- package/fn/math/degrees.js +2 -0
- package/fn/math/expm1.js +1 -1
- package/fn/math/fround.js +1 -1
- package/fn/math/fscale.js +2 -0
- package/fn/math/hypot.js +1 -1
- package/fn/math/iaddh.js +1 -1
- package/fn/math/imul.js +1 -1
- package/fn/math/imulh.js +1 -1
- package/fn/math/index.js +9 -1
- package/fn/math/isubh.js +1 -1
- package/fn/math/log10.js +1 -1
- package/fn/math/log1p.js +1 -1
- package/fn/math/log2.js +1 -1
- package/fn/math/rad-per-deg.js +2 -0
- package/fn/math/radians.js +2 -0
- package/fn/math/scale.js +2 -0
- package/fn/math/sign.js +1 -1
- package/fn/math/signbit.js +3 -0
- package/fn/math/sinh.js +1 -1
- package/fn/math/tanh.js +1 -1
- package/fn/math/trunc.js +1 -1
- package/fn/math/umulh.js +1 -1
- package/fn/number/constructor.js +1 -1
- package/fn/number/epsilon.js +1 -1
- package/fn/number/index.js +1 -1
- package/fn/number/is-finite.js +1 -1
- package/fn/number/is-integer.js +1 -1
- package/fn/number/is-nan.js +1 -1
- package/fn/number/is-safe-integer.js +1 -1
- package/fn/number/iterator.js +2 -2
- package/fn/number/max-safe-integer.js +1 -1
- package/fn/number/min-safe-integer.js +1 -1
- package/fn/number/parse-float.js +1 -1
- package/fn/number/parse-int.js +1 -1
- package/fn/number/to-fixed.js +1 -1
- package/fn/number/to-precision.js +1 -1
- package/fn/number/virtual/index.js +1 -1
- package/fn/number/virtual/iterator.js +1 -1
- package/fn/number/virtual/to-fixed.js +1 -1
- package/fn/number/virtual/to-precision.js +1 -1
- package/fn/object/assign.js +1 -1
- package/fn/object/classof.js +1 -1
- package/fn/object/create.js +2 -2
- package/fn/object/define-getter.js +1 -1
- package/fn/object/define-properties.js +2 -2
- package/fn/object/define-property.js +2 -2
- package/fn/object/define-setter.js +1 -1
- package/fn/object/define.js +1 -1
- package/fn/object/entries.js +1 -1
- package/fn/object/freeze.js +1 -1
- package/fn/object/get-own-property-descriptor.js +2 -2
- package/fn/object/get-own-property-descriptors.js +1 -1
- package/fn/object/get-own-property-names.js +2 -2
- package/fn/object/get-own-property-symbols.js +1 -1
- package/fn/object/get-prototype-of.js +1 -1
- package/fn/object/index.js +1 -1
- package/fn/object/is-extensible.js +1 -1
- package/fn/object/is-frozen.js +1 -1
- package/fn/object/is-object.js +1 -1
- package/fn/object/is-sealed.js +1 -1
- package/fn/object/is.js +1 -1
- package/fn/object/keys.js +1 -1
- package/fn/object/lookup-getter.js +1 -1
- package/fn/object/lookup-setter.js +1 -1
- package/fn/object/make.js +1 -1
- package/fn/object/prevent-extensions.js +1 -1
- package/fn/object/seal.js +1 -1
- package/fn/object/set-prototype-of.js +1 -1
- package/fn/object/values.js +1 -1
- package/fn/observable.js +7 -0
- package/fn/parse-float.js +1 -1
- package/fn/parse-int.js +1 -1
- package/fn/promise/finally.js +4 -0
- package/fn/promise/index.js +7 -0
- package/fn/promise/try.js +8 -0
- package/fn/promise.js +3 -1
- package/fn/reflect/apply.js +1 -1
- package/fn/reflect/construct.js +1 -1
- package/fn/reflect/define-metadata.js +1 -1
- package/fn/reflect/define-property.js +1 -1
- package/fn/reflect/delete-metadata.js +1 -1
- package/fn/reflect/delete-property.js +1 -1
- package/fn/reflect/enumerate.js +1 -1
- package/fn/reflect/get-metadata-keys.js +1 -1
- package/fn/reflect/get-metadata.js +1 -1
- package/fn/reflect/get-own-metadata-keys.js +1 -1
- package/fn/reflect/get-own-metadata.js +1 -1
- package/fn/reflect/get-own-property-descriptor.js +1 -1
- package/fn/reflect/get-prototype-of.js +1 -1
- package/fn/reflect/get.js +1 -1
- package/fn/reflect/has-metadata.js +1 -1
- package/fn/reflect/has-own-metadata.js +1 -1
- package/fn/reflect/has.js +1 -1
- package/fn/reflect/index.js +1 -1
- package/fn/reflect/is-extensible.js +1 -1
- package/fn/reflect/metadata.js +1 -1
- package/fn/reflect/own-keys.js +1 -1
- package/fn/reflect/prevent-extensions.js +1 -1
- package/fn/reflect/set-prototype-of.js +1 -1
- package/fn/reflect/set.js +1 -1
- package/fn/regexp/constructor.js +1 -1
- package/fn/regexp/escape.js +1 -1
- package/fn/regexp/flags.js +2 -2
- package/fn/regexp/index.js +1 -1
- package/fn/regexp/match.js +2 -2
- package/fn/regexp/replace.js +2 -2
- package/fn/regexp/search.js +2 -2
- package/fn/regexp/split.js +2 -2
- package/fn/regexp/to-string.js +2 -2
- package/fn/set/from.js +8 -0
- package/fn/set/index.js +8 -0
- package/fn/set/of.js +8 -0
- package/fn/set-immediate.js +1 -1
- package/fn/set-interval.js +1 -1
- package/fn/set-timeout.js +1 -1
- package/fn/set.js +3 -1
- package/fn/string/anchor.js +1 -1
- package/fn/string/at.js +1 -1
- package/fn/string/big.js +1 -1
- package/fn/string/blink.js +1 -1
- package/fn/string/bold.js +1 -1
- package/fn/string/code-point-at.js +1 -1
- package/fn/string/ends-with.js +1 -1
- package/fn/string/escape-html.js +1 -1
- package/fn/string/fixed.js +1 -1
- package/fn/string/fontcolor.js +1 -1
- package/fn/string/fontsize.js +1 -1
- package/fn/string/from-code-point.js +1 -1
- package/fn/string/includes.js +1 -1
- package/fn/string/italics.js +1 -1
- package/fn/string/iterator.js +2 -2
- package/fn/string/link.js +1 -1
- package/fn/string/match-all.js +1 -1
- package/fn/string/raw.js +1 -1
- package/fn/string/repeat.js +1 -1
- package/fn/string/small.js +1 -1
- package/fn/string/starts-with.js +1 -1
- package/fn/string/strike.js +1 -1
- package/fn/string/sub.js +1 -1
- package/fn/string/sup.js +1 -1
- package/fn/string/trim-end.js +1 -1
- package/fn/string/trim-left.js +1 -1
- package/fn/string/trim-right.js +1 -1
- package/fn/string/trim-start.js +1 -1
- package/fn/string/trim.js +1 -1
- package/fn/string/unescape-html.js +1 -1
- package/fn/string/virtual/anchor.js +1 -1
- package/fn/string/virtual/at.js +1 -1
- package/fn/string/virtual/big.js +1 -1
- package/fn/string/virtual/blink.js +1 -1
- package/fn/string/virtual/bold.js +1 -1
- package/fn/string/virtual/code-point-at.js +1 -1
- package/fn/string/virtual/ends-with.js +1 -1
- package/fn/string/virtual/escape-html.js +1 -1
- package/fn/string/virtual/fixed.js +1 -1
- package/fn/string/virtual/fontcolor.js +1 -1
- package/fn/string/virtual/fontsize.js +1 -1
- package/fn/string/virtual/includes.js +1 -1
- package/fn/string/virtual/italics.js +1 -1
- package/fn/string/virtual/iterator.js +1 -1
- package/fn/string/virtual/link.js +1 -1
- package/fn/string/virtual/match-all.js +1 -1
- package/fn/string/virtual/pad-end.js +1 -1
- package/fn/string/virtual/pad-start.js +1 -1
- package/fn/string/virtual/repeat.js +1 -1
- package/fn/string/virtual/small.js +1 -1
- package/fn/string/virtual/starts-with.js +1 -1
- package/fn/string/virtual/strike.js +1 -1
- package/fn/string/virtual/sub.js +1 -1
- package/fn/string/virtual/sup.js +1 -1
- package/fn/string/virtual/trim-end.js +1 -1
- package/fn/string/virtual/trim-left.js +1 -1
- package/fn/string/virtual/trim-right.js +1 -1
- package/fn/string/virtual/trim-start.js +1 -1
- package/fn/string/virtual/trim.js +1 -1
- package/fn/string/virtual/unescape-html.js +1 -1
- package/fn/symbol/async-iterator.js +2 -0
- package/fn/symbol/for.js +1 -1
- package/fn/symbol/has-instance.js +2 -1
- package/fn/symbol/index.js +3 -1
- package/fn/symbol/is-concat-spreadable.js +1 -1
- package/fn/symbol/iterator.js +1 -1
- package/fn/symbol/key-for.js +1 -1
- package/fn/symbol/match.js +1 -1
- package/fn/symbol/observable.js +2 -0
- package/fn/symbol/replace.js +1 -1
- package/fn/symbol/search.js +1 -1
- package/fn/symbol/species.js +1 -1
- package/fn/symbol/split.js +1 -1
- package/fn/symbol/to-primitive.js +1 -1
- package/fn/symbol/to-string-tag.js +1 -1
- package/fn/symbol/unscopables.js +1 -1
- package/fn/system/global.js +1 -1
- package/fn/system/index.js +1 -1
- package/fn/typed/array-buffer.js +1 -1
- package/fn/typed/data-view.js +1 -1
- package/fn/typed/float32-array.js +1 -1
- package/fn/typed/float64-array.js +1 -1
- package/fn/typed/index.js +1 -1
- package/fn/typed/int16-array.js +1 -1
- package/fn/typed/int32-array.js +1 -1
- package/fn/typed/int8-array.js +1 -1
- package/fn/typed/uint16-array.js +1 -1
- package/fn/typed/uint32-array.js +1 -1
- package/fn/typed/uint8-array.js +1 -1
- package/fn/typed/uint8-clamped-array.js +1 -1
- package/fn/weak-map/from.js +8 -0
- package/fn/weak-map/index.js +6 -0
- package/fn/weak-map/of.js +8 -0
- package/fn/weak-map.js +3 -1
- package/fn/weak-set/from.js +8 -0
- package/fn/weak-set/index.js +6 -0
- package/fn/weak-set/of.js +8 -0
- package/fn/weak-set.js +3 -1
- package/index.js +1 -1
- package/library/core/_.js +1 -1
- package/library/core/dict.js +1 -1
- package/library/core/number.js +1 -1
- package/library/core/regexp.js +1 -1
- package/library/core/string.js +1 -1
- package/library/es5/index.js +1 -1
- package/library/es6/array.js +1 -1
- package/library/es6/date.js +1 -1
- package/library/es6/function.js +1 -1
- package/library/es6/index.js +1 -1
- package/library/es6/map.js +1 -1
- package/library/es6/math.js +1 -1
- package/library/es6/number.js +1 -1
- package/library/es6/object.js +1 -1
- package/library/es6/parse-float.js +1 -1
- package/library/es6/parse-int.js +1 -1
- package/library/es6/promise.js +1 -1
- package/library/es6/reflect.js +1 -1
- package/library/es6/regexp.js +1 -1
- package/library/es6/set.js +1 -1
- package/library/es6/string.js +1 -1
- package/library/es6/symbol.js +1 -1
- package/library/es6/typed.js +1 -1
- package/library/es6/weak-map.js +1 -1
- package/library/es6/weak-set.js +1 -1
- package/library/es7/array.js +3 -1
- package/library/es7/asap.js +2 -0
- package/library/es7/error.js +1 -1
- package/library/es7/global.js +2 -0
- package/library/es7/index.js +24 -0
- package/library/es7/map.js +3 -1
- package/library/es7/math.js +8 -0
- package/library/es7/object.js +1 -1
- package/library/es7/observable.js +7 -0
- package/library/es7/promise.js +3 -0
- package/library/es7/set.js +3 -1
- package/library/es7/symbol.js +3 -0
- package/library/es7/system.js +1 -1
- package/library/es7/weak-map.js +3 -0
- package/library/es7/weak-set.js +3 -0
- package/library/fn/_.js +1 -1
- package/library/fn/array/concat.js +2 -2
- package/library/fn/array/copy-within.js +1 -1
- package/library/fn/array/entries.js +1 -1
- package/library/fn/array/every.js +1 -1
- package/library/fn/array/fill.js +1 -1
- package/library/fn/array/filter.js +1 -1
- package/library/fn/array/find-index.js +1 -1
- package/library/fn/array/find.js +1 -1
- package/library/fn/array/flat-map.js +2 -0
- package/library/fn/array/flatten.js +2 -0
- package/library/fn/array/for-each.js +1 -1
- package/library/fn/array/from.js +1 -1
- package/library/fn/array/includes.js +1 -1
- package/library/fn/array/index-of.js +1 -1
- package/library/fn/array/index.js +3 -1
- package/library/fn/array/is-array.js +1 -1
- package/library/fn/array/iterator.js +1 -1
- package/library/fn/array/join.js +1 -1
- package/library/fn/array/keys.js +1 -1
- package/library/fn/array/last-index-of.js +1 -1
- package/library/fn/array/map.js +1 -1
- package/library/fn/array/of.js +1 -1
- package/library/fn/array/pop.js +2 -2
- package/library/fn/array/push.js +2 -2
- package/library/fn/array/reduce-right.js +1 -1
- package/library/fn/array/reduce.js +1 -1
- package/library/fn/array/reverse.js +2 -2
- package/library/fn/array/shift.js +2 -2
- package/library/fn/array/slice.js +1 -1
- package/library/fn/array/some.js +1 -1
- package/library/fn/array/sort.js +1 -1
- package/library/fn/array/splice.js +2 -2
- package/library/fn/array/unshift.js +2 -2
- package/library/fn/array/values.js +1 -1
- package/library/fn/array/virtual/copy-within.js +1 -1
- package/library/fn/array/virtual/entries.js +1 -1
- package/library/fn/array/virtual/every.js +1 -1
- package/library/fn/array/virtual/fill.js +1 -1
- package/library/fn/array/virtual/filter.js +1 -1
- package/library/fn/array/virtual/find-index.js +1 -1
- package/library/fn/array/virtual/find.js +1 -1
- package/library/fn/array/virtual/flat-map.js +2 -0
- package/library/fn/array/virtual/flatten.js +2 -0
- package/library/fn/array/virtual/for-each.js +1 -1
- package/library/fn/array/virtual/includes.js +1 -1
- package/library/fn/array/virtual/index-of.js +1 -1
- package/library/fn/array/virtual/index.js +1 -1
- package/library/fn/array/virtual/iterator.js +1 -1
- package/library/fn/array/virtual/join.js +1 -1
- package/library/fn/array/virtual/keys.js +1 -1
- package/library/fn/array/virtual/last-index-of.js +1 -1
- package/library/fn/array/virtual/map.js +1 -1
- package/library/fn/array/virtual/reduce-right.js +1 -1
- package/library/fn/array/virtual/reduce.js +1 -1
- package/library/fn/array/virtual/slice.js +1 -1
- package/library/fn/array/virtual/some.js +1 -1
- package/library/fn/array/virtual/sort.js +1 -1
- package/library/fn/array/virtual/values.js +1 -1
- package/library/fn/asap.js +2 -0
- package/library/fn/clear-immediate.js +1 -1
- package/library/fn/date/index.js +1 -1
- package/library/fn/date/now.js +1 -1
- package/library/fn/date/to-iso-string.js +1 -1
- package/library/fn/date/to-json.js +1 -1
- package/library/fn/date/to-primitive.js +2 -2
- package/library/fn/date/to-string.js +4 -4
- package/library/fn/dict.js +1 -1
- package/library/fn/dom-collections/index.js +4 -4
- package/library/fn/dom-collections/iterator.js +1 -1
- package/library/fn/error/index.js +1 -1
- package/library/fn/error/is-error.js +1 -1
- package/library/fn/function/bind.js +1 -1
- package/library/fn/function/has-instance.js +1 -1
- package/library/fn/function/name.js +1 -1
- package/library/fn/function/part.js +1 -1
- package/library/fn/function/virtual/bind.js +1 -1
- package/library/fn/function/virtual/index.js +1 -1
- package/library/fn/function/virtual/part.js +1 -1
- package/library/fn/get-iterator-method.js +1 -1
- package/library/fn/get-iterator.js +1 -1
- package/library/fn/global.js +2 -0
- package/library/fn/is-iterable.js +1 -1
- package/library/fn/json/index.js +1 -1
- package/library/fn/json/stringify.js +4 -4
- package/library/fn/map/from.js +8 -0
- package/library/fn/map/index.js +8 -0
- package/library/fn/map/of.js +8 -0
- package/library/fn/map.js +3 -1
- package/library/fn/math/acosh.js +1 -1
- package/library/fn/math/asinh.js +1 -1
- package/library/fn/math/atanh.js +1 -1
- package/library/fn/math/cbrt.js +1 -1
- package/library/fn/math/clamp.js +2 -0
- package/library/fn/math/clz32.js +1 -1
- package/library/fn/math/cosh.js +1 -1
- package/library/fn/math/deg-per-rad.js +2 -0
- package/library/fn/math/degrees.js +2 -0
- package/library/fn/math/expm1.js +1 -1
- package/library/fn/math/fround.js +1 -1
- package/library/fn/math/fscale.js +2 -0
- package/library/fn/math/hypot.js +1 -1
- package/library/fn/math/iaddh.js +1 -1
- package/library/fn/math/imul.js +1 -1
- package/library/fn/math/imulh.js +1 -1
- package/library/fn/math/index.js +9 -1
- package/library/fn/math/isubh.js +1 -1
- package/library/fn/math/log10.js +1 -1
- package/library/fn/math/log1p.js +1 -1
- package/library/fn/math/log2.js +1 -1
- package/library/fn/math/rad-per-deg.js +2 -0
- package/library/fn/math/radians.js +2 -0
- package/library/fn/math/scale.js +2 -0
- package/library/fn/math/sign.js +1 -1
- package/library/fn/math/signbit.js +3 -0
- package/library/fn/math/sinh.js +1 -1
- package/library/fn/math/tanh.js +1 -1
- package/library/fn/math/trunc.js +1 -1
- package/library/fn/math/umulh.js +1 -1
- package/library/fn/number/constructor.js +1 -1
- package/library/fn/number/epsilon.js +1 -1
- package/library/fn/number/index.js +1 -1
- package/library/fn/number/is-finite.js +1 -1
- package/library/fn/number/is-integer.js +1 -1
- package/library/fn/number/is-nan.js +1 -1
- package/library/fn/number/is-safe-integer.js +1 -1
- package/library/fn/number/iterator.js +2 -2
- package/library/fn/number/max-safe-integer.js +1 -1
- package/library/fn/number/min-safe-integer.js +1 -1
- package/library/fn/number/parse-float.js +1 -1
- package/library/fn/number/parse-int.js +1 -1
- package/library/fn/number/to-fixed.js +1 -1
- package/library/fn/number/to-precision.js +1 -1
- package/library/fn/number/virtual/index.js +1 -1
- package/library/fn/number/virtual/iterator.js +1 -1
- package/library/fn/number/virtual/to-fixed.js +1 -1
- package/library/fn/number/virtual/to-precision.js +1 -1
- package/library/fn/object/assign.js +1 -1
- package/library/fn/object/classof.js +1 -1
- package/library/fn/object/create.js +2 -2
- package/library/fn/object/define-getter.js +1 -1
- package/library/fn/object/define-properties.js +2 -2
- package/library/fn/object/define-property.js +2 -2
- package/library/fn/object/define-setter.js +1 -1
- package/library/fn/object/define.js +1 -1
- package/library/fn/object/entries.js +1 -1
- package/library/fn/object/freeze.js +1 -1
- package/library/fn/object/get-own-property-descriptor.js +2 -2
- package/library/fn/object/get-own-property-descriptors.js +1 -1
- package/library/fn/object/get-own-property-names.js +2 -2
- package/library/fn/object/get-own-property-symbols.js +1 -1
- package/library/fn/object/get-prototype-of.js +1 -1
- package/library/fn/object/index.js +1 -1
- package/library/fn/object/is-extensible.js +1 -1
- package/library/fn/object/is-frozen.js +1 -1
- package/library/fn/object/is-object.js +1 -1
- package/library/fn/object/is-sealed.js +1 -1
- package/library/fn/object/is.js +1 -1
- package/library/fn/object/keys.js +1 -1
- package/library/fn/object/lookup-getter.js +1 -1
- package/library/fn/object/lookup-setter.js +1 -1
- package/library/fn/object/make.js +1 -1
- package/library/fn/object/prevent-extensions.js +1 -1
- package/library/fn/object/seal.js +1 -1
- package/library/fn/object/set-prototype-of.js +1 -1
- package/library/fn/object/values.js +1 -1
- package/library/fn/observable.js +7 -0
- package/library/fn/parse-float.js +1 -1
- package/library/fn/parse-int.js +1 -1
- package/library/fn/promise/finally.js +4 -0
- package/library/fn/promise/index.js +7 -0
- package/library/fn/promise/try.js +8 -0
- package/library/fn/promise.js +3 -1
- package/library/fn/reflect/apply.js +1 -1
- package/library/fn/reflect/construct.js +1 -1
- package/library/fn/reflect/define-metadata.js +1 -1
- package/library/fn/reflect/define-property.js +1 -1
- package/library/fn/reflect/delete-metadata.js +1 -1
- package/library/fn/reflect/delete-property.js +1 -1
- package/library/fn/reflect/enumerate.js +1 -1
- package/library/fn/reflect/get-metadata-keys.js +1 -1
- package/library/fn/reflect/get-metadata.js +1 -1
- package/library/fn/reflect/get-own-metadata-keys.js +1 -1
- package/library/fn/reflect/get-own-metadata.js +1 -1
- package/library/fn/reflect/get-own-property-descriptor.js +1 -1
- package/library/fn/reflect/get-prototype-of.js +1 -1
- package/library/fn/reflect/get.js +1 -1
- package/library/fn/reflect/has-metadata.js +1 -1
- package/library/fn/reflect/has-own-metadata.js +1 -1
- package/library/fn/reflect/has.js +1 -1
- package/library/fn/reflect/index.js +1 -1
- package/library/fn/reflect/is-extensible.js +1 -1
- package/library/fn/reflect/metadata.js +1 -1
- package/library/fn/reflect/own-keys.js +1 -1
- package/library/fn/reflect/prevent-extensions.js +1 -1
- package/library/fn/reflect/set-prototype-of.js +1 -1
- package/library/fn/reflect/set.js +1 -1
- package/library/fn/regexp/constructor.js +1 -1
- package/library/fn/regexp/escape.js +1 -1
- package/library/fn/regexp/flags.js +2 -2
- package/library/fn/regexp/index.js +1 -1
- package/library/fn/regexp/match.js +2 -2
- package/library/fn/regexp/replace.js +2 -2
- package/library/fn/regexp/search.js +2 -2
- package/library/fn/regexp/split.js +2 -2
- package/library/fn/regexp/to-string.js +2 -2
- package/library/fn/set/from.js +8 -0
- package/library/fn/set/index.js +8 -0
- package/library/fn/set/of.js +8 -0
- package/library/fn/set-immediate.js +1 -1
- package/library/fn/set-interval.js +1 -1
- package/library/fn/set-timeout.js +1 -1
- package/library/fn/set.js +3 -1
- package/library/fn/string/anchor.js +1 -1
- package/library/fn/string/at.js +1 -1
- package/library/fn/string/big.js +1 -1
- package/library/fn/string/blink.js +1 -1
- package/library/fn/string/bold.js +1 -1
- package/library/fn/string/code-point-at.js +1 -1
- package/library/fn/string/ends-with.js +1 -1
- package/library/fn/string/escape-html.js +1 -1
- package/library/fn/string/fixed.js +1 -1
- package/library/fn/string/fontcolor.js +1 -1
- package/library/fn/string/fontsize.js +1 -1
- package/library/fn/string/from-code-point.js +1 -1
- package/library/fn/string/includes.js +1 -1
- package/library/fn/string/italics.js +1 -1
- package/library/fn/string/iterator.js +2 -2
- package/library/fn/string/link.js +1 -1
- package/library/fn/string/match-all.js +1 -1
- package/library/fn/string/raw.js +1 -1
- package/library/fn/string/repeat.js +1 -1
- package/library/fn/string/small.js +1 -1
- package/library/fn/string/starts-with.js +1 -1
- package/library/fn/string/strike.js +1 -1
- package/library/fn/string/sub.js +1 -1
- package/library/fn/string/sup.js +1 -1
- package/library/fn/string/trim-end.js +1 -1
- package/library/fn/string/trim-left.js +1 -1
- package/library/fn/string/trim-right.js +1 -1
- package/library/fn/string/trim-start.js +1 -1
- package/library/fn/string/trim.js +1 -1
- package/library/fn/string/unescape-html.js +1 -1
- package/library/fn/string/virtual/anchor.js +1 -1
- package/library/fn/string/virtual/at.js +1 -1
- package/library/fn/string/virtual/big.js +1 -1
- package/library/fn/string/virtual/blink.js +1 -1
- package/library/fn/string/virtual/bold.js +1 -1
- package/library/fn/string/virtual/code-point-at.js +1 -1
- package/library/fn/string/virtual/ends-with.js +1 -1
- package/library/fn/string/virtual/escape-html.js +1 -1
- package/library/fn/string/virtual/fixed.js +1 -1
- package/library/fn/string/virtual/fontcolor.js +1 -1
- package/library/fn/string/virtual/fontsize.js +1 -1
- package/library/fn/string/virtual/includes.js +1 -1
- package/library/fn/string/virtual/italics.js +1 -1
- package/library/fn/string/virtual/iterator.js +1 -1
- package/library/fn/string/virtual/link.js +1 -1
- package/library/fn/string/virtual/match-all.js +1 -1
- package/library/fn/string/virtual/pad-end.js +1 -1
- package/library/fn/string/virtual/pad-start.js +1 -1
- package/library/fn/string/virtual/repeat.js +1 -1
- package/library/fn/string/virtual/small.js +1 -1
- package/library/fn/string/virtual/starts-with.js +1 -1
- package/library/fn/string/virtual/strike.js +1 -1
- package/library/fn/string/virtual/sub.js +1 -1
- package/library/fn/string/virtual/sup.js +1 -1
- package/library/fn/string/virtual/trim-end.js +1 -1
- package/library/fn/string/virtual/trim-left.js +1 -1
- package/library/fn/string/virtual/trim-right.js +1 -1
- package/library/fn/string/virtual/trim-start.js +1 -1
- package/library/fn/string/virtual/trim.js +1 -1
- package/library/fn/string/virtual/unescape-html.js +1 -1
- package/library/fn/symbol/async-iterator.js +2 -0
- package/library/fn/symbol/for.js +1 -1
- package/library/fn/symbol/has-instance.js +2 -1
- package/library/fn/symbol/index.js +3 -1
- package/library/fn/symbol/is-concat-spreadable.js +1 -1
- package/library/fn/symbol/iterator.js +1 -1
- package/library/fn/symbol/key-for.js +1 -1
- package/library/fn/symbol/match.js +1 -1
- package/library/fn/symbol/observable.js +2 -0
- package/library/fn/symbol/replace.js +1 -1
- package/library/fn/symbol/search.js +1 -1
- package/library/fn/symbol/species.js +1 -1
- package/library/fn/symbol/split.js +1 -1
- package/library/fn/symbol/to-primitive.js +1 -1
- package/library/fn/symbol/to-string-tag.js +1 -1
- package/library/fn/symbol/unscopables.js +1 -1
- package/library/fn/system/global.js +1 -1
- package/library/fn/system/index.js +1 -1
- package/library/fn/typed/array-buffer.js +1 -1
- package/library/fn/typed/data-view.js +1 -1
- package/library/fn/typed/float32-array.js +1 -1
- package/library/fn/typed/float64-array.js +1 -1
- package/library/fn/typed/index.js +1 -1
- package/library/fn/typed/int16-array.js +1 -1
- package/library/fn/typed/int32-array.js +1 -1
- package/library/fn/typed/int8-array.js +1 -1
- package/library/fn/typed/uint16-array.js +1 -1
- package/library/fn/typed/uint32-array.js +1 -1
- package/library/fn/typed/uint8-array.js +1 -1
- package/library/fn/typed/uint8-clamped-array.js +1 -1
- package/library/fn/weak-map/from.js +8 -0
- package/library/fn/weak-map/index.js +6 -0
- package/library/fn/weak-map/of.js +8 -0
- package/library/fn/weak-map.js +3 -1
- package/library/fn/weak-set/from.js +8 -0
- package/library/fn/weak-set/index.js +6 -0
- package/library/fn/weak-set/of.js +8 -0
- package/library/fn/weak-set.js +3 -1
- package/library/index.js +1 -1
- package/library/modules/_a-function.js +3 -3
- package/library/modules/_a-number-value.js +5 -5
- package/library/modules/_add-to-unscopables.js +1 -1
- package/library/modules/_an-instance.js +3 -3
- package/library/modules/_an-object.js +3 -3
- package/library/modules/_array-copy-within.js +18 -18
- package/library/modules/_array-fill.js +12 -12
- package/library/modules/_array-from-iterable.js +1 -1
- package/library/modules/_array-includes.js +17 -15
- package/library/modules/_array-methods.js +31 -31
- package/library/modules/_array-reduce.js +28 -28
- package/library/modules/_array-species-constructor.js +16 -0
- package/library/modules/_array-species-create.js +5 -15
- package/library/modules/_bind.js +15 -14
- package/library/modules/_classof.js +8 -8
- package/library/modules/_cof.js +2 -2
- package/library/modules/_collection-strong.js +69 -68
- package/library/modules/_collection-to-json.js +6 -6
- package/library/modules/_collection-weak.js +38 -36
- package/library/modules/_collection.js +31 -31
- package/library/modules/_core.js +2 -2
- package/library/modules/_create-property.js +8 -8
- package/library/modules/_ctx.js +8 -8
- package/library/modules/_date-to-iso-string.js +26 -0
- package/library/modules/_date-to-primitive.js +9 -9
- package/library/modules/_defined.js +3 -3
- package/library/modules/_descriptors.js +3 -3
- package/library/modules/_dom-create.js +6 -6
- package/library/modules/_entry-virtual.js +2 -2
- package/library/modules/_enum-bug-keys.js +4 -4
- package/library/modules/_enum-keys.js +13 -13
- package/library/modules/_export.js +28 -28
- package/library/modules/_fails-is-regexp.js +4 -4
- package/library/modules/_fails.js +3 -3
- package/library/modules/_fix-re-wks.js +16 -16
- package/library/modules/_flags.js +9 -9
- package/library/modules/_flatten-into-array.js +39 -0
- package/library/modules/_for-of.js +23 -17
- package/library/modules/_global.js +4 -2
- package/library/modules/_has.js +2 -2
- package/library/modules/_hide.js +5 -5
- package/library/modules/_html.js +2 -1
- package/library/modules/_ie8-dom-define.js +3 -3
- package/library/modules/_inherit-if-required.js +9 -8
- package/library/modules/_invoke.js +4 -4
- package/library/modules/_iobject.js +3 -2
- package/library/modules/_is-array-iter.js +5 -5
- package/library/modules/_is-array.js +2 -2
- package/library/modules/_is-integer.js +4 -4
- package/library/modules/_is-object.js +2 -2
- package/library/modules/_is-regexp.js +5 -5
- package/library/modules/_iter-call.js +4 -4
- package/library/modules/_iter-create.js +8 -8
- package/library/modules/_iter-define.js +45 -45
- package/library/modules/_iter-detect.js +14 -13
- package/library/modules/_iter-step.js +3 -3
- package/library/modules/_iterators.js +1 -1
- package/library/modules/_keyof.js +10 -10
- package/library/modules/_library.js +1 -1
- package/library/modules/_math-expm1.js +2 -2
- package/library/modules/_math-fround.js +23 -0
- package/library/modules/_math-log1p.js +2 -2
- package/library/modules/_math-scale.js +18 -0
- package/library/modules/_math-sign.js +3 -2
- package/library/modules/_meta.js +26 -26
- package/library/modules/_metadata.js +21 -21
- package/library/modules/_microtask.js +64 -54
- package/library/modules/_new-promise-capability.js +18 -0
- package/library/modules/_object-assign.js +27 -26
- package/library/modules/_object-create.js +41 -40
- package/library/modules/_object-define.js +11 -10
- package/library/modules/_object-dp.js +10 -10
- package/library/modules/_object-dps.js +13 -13
- package/library/modules/_object-forced-pam.js +9 -7
- package/library/modules/_object-gopd.js +16 -16
- package/library/modules/_object-gopn-ext.js +6 -6
- package/library/modules/_object-gopn.js +7 -7
- package/library/modules/_object-gops.js +1 -1
- package/library/modules/_object-gpo.js +13 -13
- package/library/modules/_object-keys-internal.js +17 -17
- package/library/modules/_object-keys.js +7 -7
- package/library/modules/_object-pie.js +1 -1
- package/library/modules/_object-sap.js +8 -8
- package/library/modules/_object-to-array.js +13 -13
- package/library/modules/_own-keys.js +8 -8
- package/library/modules/_parse-float.js +6 -6
- package/library/modules/_parse-int.js +6 -6
- package/library/modules/_partial.js +21 -19
- package/library/modules/_path.js +1 -1
- package/library/modules/_perform.js +7 -0
- package/library/modules/_promise-resolve.js +8 -0
- package/library/modules/_property-desc.js +5 -5
- package/library/modules/_redefine-all.js +4 -4
- package/library/modules/_redefine.js +1 -1
- package/library/modules/_replacer.js +4 -4
- package/library/modules/_same-value.js +3 -2
- package/library/modules/_set-collection-from.js +28 -0
- package/library/modules/_set-collection-of.js +12 -0
- package/library/modules/_set-proto.js +9 -9
- package/library/modules/_set-species.js +9 -9
- package/library/modules/_set-to-string-tag.js +6 -6
- package/library/modules/_shared-key.js +5 -5
- package/library/modules/_shared.js +5 -5
- package/library/modules/_species-constructor.js +7 -6
- package/library/modules/_strict-method.js +9 -7
- package/library/modules/_string-at.js +10 -10
- package/library/modules/_string-context.js +5 -5
- package/library/modules/_string-html.js +11 -11
- package/library/modules/_string-pad.js +12 -13
- package/library/modules/_string-repeat.js +9 -9
- package/library/modules/_string-trim.js +16 -16
- package/library/modules/_string-ws.js +2 -2
- package/library/modules/_task.js +44 -35
- package/library/modules/_to-absolute-index.js +7 -0
- package/library/modules/_to-index.js +10 -7
- package/library/modules/_to-integer.js +4 -4
- package/library/modules/_to-iobject.js +4 -4
- package/library/modules/_to-length.js +4 -4
- package/library/modules/_to-object.js +2 -2
- package/library/modules/_to-primitive.js +6 -6
- package/library/modules/_typed-array.js +242 -243
- package/library/modules/_typed-buffer.js +155 -154
- package/library/modules/_typed.js +16 -14
- package/library/modules/_uid.js +4 -4
- package/library/modules/_validate-collection.js +5 -0
- package/library/modules/_wks-define.js +9 -0
- package/library/modules/_wks-ext.js +1 -0
- package/library/modules/_wks.js +9 -6
- package/library/modules/core.delay.js +7 -7
- package/library/modules/core.dict.js +85 -83
- package/library/modules/core.function.part.js +3 -3
- package/library/modules/core.get-iterator-method.js +6 -6
- package/library/modules/core.get-iterator.js +5 -5
- package/library/modules/core.is-iterable.js +6 -5
- package/library/modules/core.number.iterator.js +6 -6
- package/library/modules/core.object.classof.js +1 -1
- package/library/modules/core.object.define.js +3 -3
- package/library/modules/core.object.is-object.js +1 -1
- package/library/modules/core.object.make.js +5 -5
- package/library/modules/core.regexp.escape.js +3 -3
- package/library/modules/core.string.escape-html.js +1 -1
- package/library/modules/core.string.unescape-html.js +4 -4
- package/library/modules/es5.js +1 -1
- package/library/modules/es6.array.copy-within.js +2 -2
- package/library/modules/es6.array.every.js +10 -10
- package/library/modules/es6.array.fill.js +2 -2
- package/library/modules/es6.array.filter.js +10 -10
- package/library/modules/es6.array.find-index.js +7 -7
- package/library/modules/es6.array.find.js +7 -7
- package/library/modules/es6.array.for-each.js +11 -11
- package/library/modules/es6.array.from.js +22 -22
- package/library/modules/es6.array.index-of.js +15 -15
- package/library/modules/es6.array.is-array.js +4 -4
- package/library/modules/es6.array.iterator.js +13 -13
- package/library/modules/es6.array.join.js +12 -12
- package/library/modules/es6.array.last-index-of.js +22 -22
- package/library/modules/es6.array.map.js +10 -10
- package/library/modules/es6.array.of.js +10 -10
- package/library/modules/es6.array.reduce-right.js +10 -10
- package/library/modules/es6.array.reduce.js +10 -10
- package/library/modules/es6.array.slice.js +28 -28
- package/library/modules/es6.array.some.js +10 -10
- package/library/modules/es6.array.sort.js +23 -23
- package/library/modules/es6.array.species.js +1 -1
- package/library/modules/es6.date.now.js +4 -4
- package/library/modules/es6.date.to-iso-string.js +8 -28
- package/library/modules/es6.date.to-json.js +15 -10
- package/library/modules/es6.function.bind.js +4 -4
- package/library/modules/es6.function.has-instance.js +9 -9
- package/library/modules/es6.map.js +9 -7
- package/library/modules/es6.math.acosh.js +7 -7
- package/library/modules/es6.math.asinh.js +5 -5
- package/library/modules/es6.math.atanh.js +5 -5
- package/library/modules/es6.math.cbrt.js +4 -4
- package/library/modules/es6.math.clz32.js +2 -2
- package/library/modules/es6.math.cosh.js +4 -4
- package/library/modules/es6.math.expm1.js +3 -3
- package/library/modules/es6.math.fround.js +2 -24
- package/library/modules/es6.math.hypot.js +15 -15
- package/library/modules/es6.math.imul.js +10 -10
- package/library/modules/es6.math.log10.js +3 -3
- package/library/modules/es6.math.log1p.js +1 -1
- package/library/modules/es6.math.log2.js +2 -2
- package/library/modules/es6.math.sign.js +1 -1
- package/library/modules/es6.math.sinh.js +6 -6
- package/library/modules/es6.math.tanh.js +7 -7
- package/library/modules/es6.math.trunc.js +2 -2
- package/library/modules/es6.number.epsilon.js +1 -1
- package/library/modules/es6.number.is-finite.js +4 -4
- package/library/modules/es6.number.is-integer.js +1 -1
- package/library/modules/es6.number.is-nan.js +3 -2
- package/library/modules/es6.number.is-safe-integer.js +5 -5
- package/library/modules/es6.number.max-safe-integer.js +1 -1
- package/library/modules/es6.number.min-safe-integer.js +1 -1
- package/library/modules/es6.number.parse-float.js +3 -3
- package/library/modules/es6.number.parse-int.js +3 -3
- package/library/modules/es6.number.to-fixed.js +114 -114
- package/library/modules/es6.number.to-precision.js +18 -18
- package/library/modules/es6.object.assign.js +1 -1
- package/library/modules/es6.object.create.js +3 -3
- package/library/modules/es6.object.define-properties.js +3 -3
- package/library/modules/es6.object.define-property.js +3 -3
- package/library/modules/es6.object.freeze.js +5 -5
- package/library/modules/es6.object.get-own-property-descriptor.js +5 -5
- package/library/modules/es6.object.get-own-property-names.js +2 -2
- package/library/modules/es6.object.get-prototype-of.js +5 -5
- package/library/modules/es6.object.is-extensible.js +3 -3
- package/library/modules/es6.object.is-frozen.js +3 -3
- package/library/modules/es6.object.is-sealed.js +3 -3
- package/library/modules/es6.object.is.js +1 -1
- package/library/modules/es6.object.keys.js +5 -5
- package/library/modules/es6.object.prevent-extensions.js +5 -5
- package/library/modules/es6.object.seal.js +5 -5
- package/library/modules/es6.object.set-prototype-of.js +1 -1
- package/library/modules/es6.parse-float.js +4 -4
- package/library/modules/es6.parse-int.js +4 -4
- package/library/modules/es6.promise.js +146 -159
- package/library/modules/es6.reflect.apply.js +14 -7
- package/library/modules/es6.reflect.construct.js +29 -20
- package/library/modules/es6.reflect.define-property.js +10 -9
- package/library/modules/es6.reflect.delete-property.js +5 -5
- package/library/modules/es6.reflect.enumerate.js +15 -15
- package/library/modules/es6.reflect.get-own-property-descriptor.js +5 -5
- package/library/modules/es6.reflect.get-prototype-of.js +5 -5
- package/library/modules/es6.reflect.get.js +13 -13
- package/library/modules/es6.reflect.has.js +2 -2
- package/library/modules/es6.reflect.is-extensible.js +5 -5
- package/library/modules/es6.reflect.own-keys.js +1 -1
- package/library/modules/es6.reflect.prevent-extensions.js +7 -7
- package/library/modules/es6.reflect.set-prototype-of.js +6 -6
- package/library/modules/es6.reflect.set.js +17 -17
- package/library/modules/es6.regexp.constructor.js +1 -1
- package/library/modules/es6.set.js +7 -5
- package/library/modules/es6.string.anchor.js +4 -4
- package/library/modules/es6.string.big.js +4 -4
- package/library/modules/es6.string.blink.js +4 -4
- package/library/modules/es6.string.bold.js +4 -4
- package/library/modules/es6.string.code-point-at.js +4 -4
- package/library/modules/es6.string.ends-with.js +12 -12
- package/library/modules/es6.string.fixed.js +4 -4
- package/library/modules/es6.string.fontcolor.js +4 -4
- package/library/modules/es6.string.fontsize.js +4 -4
- package/library/modules/es6.string.from-code-point.js +12 -12
- package/library/modules/es6.string.includes.js +5 -5
- package/library/modules/es6.string.italics.js +4 -4
- package/library/modules/es6.string.iterator.js +9 -9
- package/library/modules/es6.string.link.js +4 -4
- package/library/modules/es6.string.raw.js +12 -12
- package/library/modules/es6.string.repeat.js +1 -1
- package/library/modules/es6.string.small.js +4 -4
- package/library/modules/es6.string.starts-with.js +10 -10
- package/library/modules/es6.string.strike.js +4 -4
- package/library/modules/es6.string.sub.js +4 -4
- package/library/modules/es6.string.sup.js +4 -4
- package/library/modules/es6.string.trim.js +3 -3
- package/library/modules/es6.symbol.js +143 -143
- package/library/modules/es6.typed.array-buffer.js +29 -30
- package/library/modules/es6.typed.data-view.js +1 -1
- package/library/modules/es6.typed.float32-array.js +3 -3
- package/library/modules/es6.typed.float64-array.js +3 -3
- package/library/modules/es6.typed.int16-array.js +3 -3
- package/library/modules/es6.typed.int32-array.js +3 -3
- package/library/modules/es6.typed.int8-array.js +3 -3
- package/library/modules/es6.typed.uint16-array.js +3 -3
- package/library/modules/es6.typed.uint32-array.js +3 -3
- package/library/modules/es6.typed.uint8-array.js +3 -3
- package/library/modules/es6.typed.uint8-clamped-array.js +3 -3
- package/library/modules/es6.weak-map.js +31 -29
- package/library/modules/es6.weak-set.js +7 -5
- package/library/modules/es7.array.flat-map.js +22 -0
- package/library/modules/es7.array.flatten.js +21 -0
- package/library/modules/es7.array.includes.js +4 -4
- package/library/modules/es7.asap.js +12 -0
- package/library/modules/es7.error.is-error.js +4 -4
- package/library/modules/es7.global.js +4 -0
- package/library/modules/es7.map.from.js +2 -0
- package/library/modules/es7.map.of.js +2 -0
- package/library/modules/es7.map.to-json.js +2 -2
- package/library/modules/es7.math.clamp.js +8 -0
- package/library/modules/es7.math.deg-per-rad.js +4 -0
- package/library/modules/es7.math.degrees.js +9 -0
- package/library/modules/es7.math.fscale.js +10 -0
- package/library/modules/es7.math.iaddh.js +5 -5
- package/library/modules/es7.math.imulh.js +10 -10
- package/library/modules/es7.math.isubh.js +5 -5
- package/library/modules/es7.math.rad-per-deg.js +4 -0
- package/library/modules/es7.math.radians.js +9 -0
- package/library/modules/es7.math.scale.js +4 -0
- package/library/modules/es7.math.signbit.js +7 -0
- package/library/modules/es7.math.umulh.js +10 -10
- package/library/modules/es7.object.define-getter.js +12 -12
- package/library/modules/es7.object.define-setter.js +12 -12
- package/library/modules/es7.object.entries.js +4 -4
- package/library/modules/es7.object.get-own-property-descriptors.js +17 -14
- package/library/modules/es7.object.lookup-getter.js +18 -18
- package/library/modules/es7.object.lookup-setter.js +18 -18
- package/library/modules/es7.object.values.js +4 -4
- package/library/modules/es7.observable.js +199 -0
- package/library/modules/es7.promise.finally.js +20 -0
- package/library/modules/es7.promise.try.js +12 -0
- package/library/modules/es7.reflect.define-metadata.js +6 -6
- package/library/modules/es7.reflect.delete-metadata.js +11 -11
- package/library/modules/es7.reflect.get-metadata-keys.js +14 -14
- package/library/modules/es7.reflect.get-metadata.js +10 -10
- package/library/modules/es7.reflect.get-own-metadata-keys.js +6 -6
- package/library/modules/es7.reflect.get-own-metadata.js +6 -6
- package/library/modules/es7.reflect.has-metadata.js +9 -9
- package/library/modules/es7.reflect.has-own-metadata.js +6 -6
- package/library/modules/es7.reflect.metadata.js +8 -8
- package/library/modules/es7.set.from.js +2 -0
- package/library/modules/es7.set.of.js +2 -0
- package/library/modules/es7.set.to-json.js +2 -2
- package/library/modules/es7.string.at.js +4 -4
- package/library/modules/es7.string.match-all.js +30 -30
- package/library/modules/es7.string.pad-end.js +4 -4
- package/library/modules/es7.string.pad-start.js +4 -4
- package/library/modules/es7.string.trim-left.js +3 -3
- package/library/modules/es7.string.trim-right.js +3 -3
- package/library/modules/es7.symbol.async-iterator.js +1 -0
- package/library/modules/es7.symbol.observable.js +1 -0
- package/library/modules/es7.system.global.js +2 -2
- package/library/modules/es7.weak-map.from.js +2 -0
- package/library/modules/es7.weak-map.of.js +2 -0
- package/library/modules/es7.weak-set.from.js +2 -0
- package/library/modules/es7.weak-set.of.js +2 -0
- package/library/modules/web.dom.iterable.js +16 -10
- package/library/modules/web.immediate.js +4 -4
- package/library/modules/web.timers.js +11 -10
- package/library/shim.js +26 -1
- package/library/stage/0.js +2 -1
- package/library/stage/1.js +22 -4
- package/library/stage/2.js +4 -1
- package/library/stage/3.js +4 -6
- package/library/stage/4.js +6 -1
- package/library/stage/index.js +1 -1
- package/library/stage/pre.js +10 -10
- package/library/web/dom-collections.js +1 -1
- package/library/web/immediate.js +1 -1
- package/library/web/index.js +1 -1
- package/library/web/timers.js +1 -1
- package/modules/_a-function.js +3 -3
- package/modules/_a-number-value.js +5 -5
- package/modules/_add-to-unscopables.js +5 -5
- package/modules/_an-instance.js +3 -3
- package/modules/_an-object.js +3 -3
- package/modules/_array-copy-within.js +18 -18
- package/modules/_array-fill.js +12 -12
- package/modules/_array-from-iterable.js +1 -1
- package/modules/_array-includes.js +17 -15
- package/modules/_array-methods.js +31 -31
- package/modules/_array-reduce.js +28 -28
- package/modules/_array-species-constructor.js +16 -0
- package/modules/_array-species-create.js +5 -15
- package/modules/_bind.js +15 -14
- package/modules/_classof.js +8 -8
- package/modules/_cof.js +2 -2
- package/modules/_collection-strong.js +69 -68
- package/modules/_collection-to-json.js +6 -6
- package/modules/_collection-weak.js +38 -36
- package/modules/_collection.js +50 -50
- package/modules/_core.js +2 -2
- package/modules/_create-property.js +8 -8
- package/modules/_ctx.js +8 -8
- package/modules/_date-to-iso-string.js +26 -0
- package/modules/_date-to-primitive.js +9 -9
- package/modules/_defined.js +3 -3
- package/modules/_descriptors.js +3 -3
- package/modules/_dom-create.js +6 -6
- package/modules/_entry-virtual.js +2 -2
- package/modules/_enum-bug-keys.js +4 -4
- package/modules/_enum-keys.js +13 -13
- package/modules/_export.js +23 -23
- package/modules/_fails-is-regexp.js +4 -4
- package/modules/_fails.js +3 -3
- package/modules/_fix-re-wks.js +16 -16
- package/modules/_flags.js +9 -9
- package/modules/_flatten-into-array.js +39 -0
- package/modules/_for-of.js +23 -17
- package/modules/_global.js +4 -2
- package/modules/_has.js +2 -2
- package/modules/_hide.js +5 -5
- package/modules/_html.js +2 -1
- package/modules/_ie8-dom-define.js +3 -3
- package/modules/_inherit-if-required.js +9 -8
- package/modules/_invoke.js +4 -4
- package/modules/_iobject.js +3 -2
- package/modules/_is-array-iter.js +5 -5
- package/modules/_is-array.js +2 -2
- package/modules/_is-integer.js +4 -4
- package/modules/_is-object.js +2 -2
- package/modules/_is-regexp.js +5 -5
- package/modules/_iter-call.js +4 -4
- package/modules/_iter-create.js +8 -8
- package/modules/_iter-define.js +45 -45
- package/modules/_iter-detect.js +14 -13
- package/modules/_iter-step.js +3 -3
- package/modules/_iterators.js +1 -1
- package/modules/_keyof.js +10 -10
- package/modules/_library.js +1 -1
- package/modules/_math-expm1.js +2 -2
- package/modules/_math-fround.js +23 -0
- package/modules/_math-log1p.js +2 -2
- package/modules/_math-scale.js +18 -0
- package/modules/_math-sign.js +3 -2
- package/modules/_meta.js +26 -26
- package/modules/_metadata.js +21 -21
- package/modules/_microtask.js +64 -54
- package/modules/_new-promise-capability.js +18 -0
- package/modules/_object-assign.js +27 -26
- package/modules/_object-create.js +41 -40
- package/modules/_object-define.js +11 -10
- package/modules/_object-dp.js +10 -10
- package/modules/_object-dps.js +13 -13
- package/modules/_object-forced-pam.js +9 -7
- package/modules/_object-gopd.js +16 -16
- package/modules/_object-gopn-ext.js +6 -6
- package/modules/_object-gopn.js +7 -7
- package/modules/_object-gops.js +1 -1
- package/modules/_object-gpo.js +13 -13
- package/modules/_object-keys-internal.js +17 -17
- package/modules/_object-keys.js +7 -7
- package/modules/_object-pie.js +1 -1
- package/modules/_object-sap.js +8 -8
- package/modules/_object-to-array.js +13 -13
- package/modules/_own-keys.js +8 -8
- package/modules/_parse-float.js +6 -6
- package/modules/_parse-int.js +6 -6
- package/modules/_partial.js +21 -19
- package/modules/_path.js +1 -1
- package/modules/_perform.js +7 -0
- package/modules/_promise-resolve.js +8 -0
- package/modules/_property-desc.js +5 -5
- package/modules/_redefine-all.js +3 -3
- package/modules/_redefine.js +21 -22
- package/modules/_replacer.js +4 -4
- package/modules/_same-value.js +3 -2
- package/modules/_set-collection-from.js +28 -0
- package/modules/_set-collection-of.js +12 -0
- package/modules/_set-proto.js +9 -9
- package/modules/_set-species.js +8 -8
- package/modules/_set-to-string-tag.js +6 -6
- package/modules/_shared-key.js +5 -5
- package/modules/_shared.js +5 -5
- package/modules/_species-constructor.js +7 -6
- package/modules/_strict-method.js +9 -7
- package/modules/_string-at.js +10 -10
- package/modules/_string-context.js +5 -5
- package/modules/_string-html.js +11 -11
- package/modules/_string-pad.js +12 -13
- package/modules/_string-repeat.js +9 -9
- package/modules/_string-trim.js +16 -16
- package/modules/_string-ws.js +2 -2
- package/modules/_task.js +44 -35
- package/modules/_to-absolute-index.js +7 -0
- package/modules/_to-index.js +10 -7
- package/modules/_to-integer.js +4 -4
- package/modules/_to-iobject.js +4 -4
- package/modules/_to-length.js +4 -4
- package/modules/_to-object.js +2 -2
- package/modules/_to-primitive.js +6 -6
- package/modules/_typed-array.js +242 -243
- package/modules/_typed-buffer.js +155 -154
- package/modules/_typed.js +16 -14
- package/modules/_uid.js +4 -4
- package/modules/_validate-collection.js +5 -0
- package/modules/_wks-define.js +9 -0
- package/modules/_wks-ext.js +1 -0
- package/modules/_wks.js +9 -6
- package/modules/core.delay.js +7 -7
- package/modules/core.dict.js +85 -83
- package/modules/core.function.part.js +3 -3
- package/modules/core.get-iterator-method.js +6 -6
- package/modules/core.get-iterator.js +5 -5
- package/modules/core.is-iterable.js +6 -5
- package/modules/core.number.iterator.js +6 -6
- package/modules/core.object.classof.js +1 -1
- package/modules/core.object.define.js +3 -3
- package/modules/core.object.is-object.js +1 -1
- package/modules/core.object.make.js +5 -5
- package/modules/core.regexp.escape.js +3 -3
- package/modules/core.string.escape-html.js +1 -1
- package/modules/core.string.unescape-html.js +4 -4
- package/modules/es5.js +1 -1
- package/modules/es6.array.copy-within.js +2 -2
- package/modules/es6.array.every.js +10 -10
- package/modules/es6.array.fill.js +2 -2
- package/modules/es6.array.filter.js +10 -10
- package/modules/es6.array.find-index.js +7 -7
- package/modules/es6.array.find.js +7 -7
- package/modules/es6.array.for-each.js +11 -11
- package/modules/es6.array.from.js +22 -22
- package/modules/es6.array.index-of.js +15 -15
- package/modules/es6.array.is-array.js +4 -4
- package/modules/es6.array.iterator.js +13 -13
- package/modules/es6.array.join.js +12 -12
- package/modules/es6.array.last-index-of.js +22 -22
- package/modules/es6.array.map.js +10 -10
- package/modules/es6.array.of.js +10 -10
- package/modules/es6.array.reduce-right.js +10 -10
- package/modules/es6.array.reduce.js +10 -10
- package/modules/es6.array.slice.js +28 -28
- package/modules/es6.array.some.js +10 -10
- package/modules/es6.array.sort.js +23 -23
- package/modules/es6.array.species.js +1 -1
- package/modules/es6.date.now.js +4 -4
- package/modules/es6.date.to-iso-string.js +8 -28
- package/modules/es6.date.to-json.js +11 -9
- package/modules/es6.date.to-primitive.js +4 -4
- package/modules/es6.date.to-string.js +9 -8
- package/modules/es6.function.bind.js +4 -4
- package/modules/es6.function.has-instance.js +9 -9
- package/modules/es6.function.name.js +12 -12
- package/modules/es6.map.js +9 -7
- package/modules/es6.math.acosh.js +7 -7
- package/modules/es6.math.asinh.js +5 -5
- package/modules/es6.math.atanh.js +5 -5
- package/modules/es6.math.cbrt.js +4 -4
- package/modules/es6.math.clz32.js +2 -2
- package/modules/es6.math.cosh.js +4 -4
- package/modules/es6.math.expm1.js +3 -3
- package/modules/es6.math.fround.js +2 -24
- package/modules/es6.math.hypot.js +15 -15
- package/modules/es6.math.imul.js +10 -10
- package/modules/es6.math.log10.js +3 -3
- package/modules/es6.math.log1p.js +1 -1
- package/modules/es6.math.log2.js +2 -2
- package/modules/es6.math.sign.js +1 -1
- package/modules/es6.math.sinh.js +6 -6
- package/modules/es6.math.tanh.js +7 -7
- package/modules/es6.math.trunc.js +2 -2
- package/modules/es6.number.constructor.js +39 -39
- package/modules/es6.number.epsilon.js +1 -1
- package/modules/es6.number.is-finite.js +4 -4
- package/modules/es6.number.is-integer.js +1 -1
- package/modules/es6.number.is-nan.js +3 -2
- package/modules/es6.number.is-safe-integer.js +5 -5
- package/modules/es6.number.max-safe-integer.js +1 -1
- package/modules/es6.number.min-safe-integer.js +1 -1
- package/modules/es6.number.parse-float.js +3 -3
- package/modules/es6.number.parse-int.js +3 -3
- package/modules/es6.number.to-fixed.js +114 -114
- package/modules/es6.number.to-precision.js +18 -18
- package/modules/es6.object.assign.js +1 -1
- package/modules/es6.object.create.js +3 -3
- package/modules/es6.object.define-properties.js +3 -3
- package/modules/es6.object.define-property.js +3 -3
- package/modules/es6.object.freeze.js +5 -5
- package/modules/es6.object.get-own-property-descriptor.js +5 -5
- package/modules/es6.object.get-own-property-names.js +2 -2
- package/modules/es6.object.get-prototype-of.js +5 -5
- package/modules/es6.object.is-extensible.js +3 -3
- package/modules/es6.object.is-frozen.js +3 -3
- package/modules/es6.object.is-sealed.js +3 -3
- package/modules/es6.object.is.js +1 -1
- package/modules/es6.object.keys.js +5 -5
- package/modules/es6.object.prevent-extensions.js +5 -5
- package/modules/es6.object.seal.js +5 -5
- package/modules/es6.object.set-prototype-of.js +1 -1
- package/modules/es6.object.to-string.js +5 -5
- package/modules/es6.parse-float.js +4 -4
- package/modules/es6.parse-int.js +4 -4
- package/modules/es6.promise.js +146 -159
- package/modules/es6.reflect.apply.js +14 -7
- package/modules/es6.reflect.construct.js +29 -20
- package/modules/es6.reflect.define-property.js +10 -9
- package/modules/es6.reflect.delete-property.js +5 -5
- package/modules/es6.reflect.enumerate.js +15 -15
- package/modules/es6.reflect.get-own-property-descriptor.js +5 -5
- package/modules/es6.reflect.get-prototype-of.js +5 -5
- package/modules/es6.reflect.get.js +13 -13
- package/modules/es6.reflect.has.js +2 -2
- package/modules/es6.reflect.is-extensible.js +5 -5
- package/modules/es6.reflect.own-keys.js +1 -1
- package/modules/es6.reflect.prevent-extensions.js +7 -7
- package/modules/es6.reflect.set-prototype-of.js +6 -6
- package/modules/es6.reflect.set.js +17 -17
- package/modules/es6.regexp.constructor.js +24 -24
- package/modules/es6.regexp.flags.js +2 -2
- package/modules/es6.regexp.match.js +5 -5
- package/modules/es6.regexp.replace.js +5 -5
- package/modules/es6.regexp.search.js +5 -5
- package/modules/es6.regexp.split.js +29 -28
- package/modules/es6.regexp.to-string.js +25 -25
- package/modules/es6.set.js +7 -5
- package/modules/es6.string.anchor.js +4 -4
- package/modules/es6.string.big.js +4 -4
- package/modules/es6.string.blink.js +4 -4
- package/modules/es6.string.bold.js +4 -4
- package/modules/es6.string.code-point-at.js +4 -4
- package/modules/es6.string.ends-with.js +12 -12
- package/modules/es6.string.fixed.js +4 -4
- package/modules/es6.string.fontcolor.js +4 -4
- package/modules/es6.string.fontsize.js +4 -4
- package/modules/es6.string.from-code-point.js +12 -12
- package/modules/es6.string.includes.js +5 -5
- package/modules/es6.string.italics.js +4 -4
- package/modules/es6.string.iterator.js +9 -9
- package/modules/es6.string.link.js +4 -4
- package/modules/es6.string.raw.js +12 -12
- package/modules/es6.string.repeat.js +1 -1
- package/modules/es6.string.small.js +4 -4
- package/modules/es6.string.starts-with.js +10 -10
- package/modules/es6.string.strike.js +4 -4
- package/modules/es6.string.sub.js +4 -4
- package/modules/es6.string.sup.js +4 -4
- package/modules/es6.string.trim.js +3 -3
- package/modules/es6.symbol.js +143 -143
- package/modules/es6.typed.array-buffer.js +29 -30
- package/modules/es6.typed.data-view.js +1 -1
- package/modules/es6.typed.float32-array.js +3 -3
- package/modules/es6.typed.float64-array.js +3 -3
- package/modules/es6.typed.int16-array.js +3 -3
- package/modules/es6.typed.int32-array.js +3 -3
- package/modules/es6.typed.int8-array.js +3 -3
- package/modules/es6.typed.uint16-array.js +3 -3
- package/modules/es6.typed.uint32-array.js +3 -3
- package/modules/es6.typed.uint8-array.js +3 -3
- package/modules/es6.typed.uint8-clamped-array.js +3 -3
- package/modules/es6.weak-map.js +31 -29
- package/modules/es6.weak-set.js +7 -5
- package/modules/es7.array.flat-map.js +22 -0
- package/modules/es7.array.flatten.js +21 -0
- package/modules/es7.array.includes.js +4 -4
- package/modules/es7.asap.js +12 -0
- package/modules/es7.error.is-error.js +4 -4
- package/modules/es7.global.js +4 -0
- package/modules/es7.map.from.js +2 -0
- package/modules/es7.map.of.js +2 -0
- package/modules/es7.map.to-json.js +2 -2
- package/modules/es7.math.clamp.js +8 -0
- package/modules/es7.math.deg-per-rad.js +4 -0
- package/modules/es7.math.degrees.js +9 -0
- package/modules/es7.math.fscale.js +10 -0
- package/modules/es7.math.iaddh.js +5 -5
- package/modules/es7.math.imulh.js +10 -10
- package/modules/es7.math.isubh.js +5 -5
- package/modules/es7.math.rad-per-deg.js +4 -0
- package/modules/es7.math.radians.js +9 -0
- package/modules/es7.math.scale.js +4 -0
- package/modules/es7.math.signbit.js +7 -0
- package/modules/es7.math.umulh.js +10 -10
- package/modules/es7.object.define-getter.js +12 -12
- package/modules/es7.object.define-setter.js +12 -12
- package/modules/es7.object.entries.js +4 -4
- package/modules/es7.object.get-own-property-descriptors.js +17 -14
- package/modules/es7.object.lookup-getter.js +18 -18
- package/modules/es7.object.lookup-setter.js +18 -18
- package/modules/es7.object.values.js +4 -4
- package/modules/es7.observable.js +199 -0
- package/modules/es7.promise.finally.js +20 -0
- package/modules/es7.promise.try.js +12 -0
- package/modules/es7.reflect.define-metadata.js +6 -6
- package/modules/es7.reflect.delete-metadata.js +11 -11
- package/modules/es7.reflect.get-metadata-keys.js +14 -14
- package/modules/es7.reflect.get-metadata.js +10 -10
- package/modules/es7.reflect.get-own-metadata-keys.js +6 -6
- package/modules/es7.reflect.get-own-metadata.js +6 -6
- package/modules/es7.reflect.has-metadata.js +9 -9
- package/modules/es7.reflect.has-own-metadata.js +6 -6
- package/modules/es7.reflect.metadata.js +8 -8
- package/modules/es7.set.from.js +2 -0
- package/modules/es7.set.of.js +2 -0
- package/modules/es7.set.to-json.js +2 -2
- package/modules/es7.string.at.js +4 -4
- package/modules/es7.string.match-all.js +30 -30
- package/modules/es7.string.pad-end.js +4 -4
- package/modules/es7.string.pad-start.js +4 -4
- package/modules/es7.string.trim-left.js +3 -3
- package/modules/es7.string.trim-right.js +3 -3
- package/modules/es7.symbol.async-iterator.js +1 -0
- package/modules/es7.symbol.observable.js +1 -0
- package/modules/es7.system.global.js +2 -2
- package/modules/es7.weak-map.from.js +2 -0
- package/modules/es7.weak-map.of.js +2 -0
- package/modules/es7.weak-set.from.js +2 -0
- package/modules/es7.weak-set.of.js +2 -0
- package/modules/library/_add-to-unscopables.js +1 -1
- package/modules/library/_collection.js +31 -31
- package/modules/library/_export.js +28 -28
- package/modules/library/_library.js +1 -1
- package/modules/library/_path.js +1 -1
- package/modules/library/_redefine-all.js +4 -4
- package/modules/library/_redefine.js +1 -1
- package/modules/library/_set-species.js +9 -9
- package/modules/library/es6.date.to-json.js +19 -0
- package/modules/library/es6.regexp.constructor.js +1 -1
- package/modules/library/web.dom.iterable.js +16 -10
- package/modules/web.dom.iterable.js +55 -19
- package/modules/web.immediate.js +4 -4
- package/modules/web.timers.js +11 -10
- package/package.json +17 -14
- package/shim.js +26 -1
- package/stage/0.js +2 -1
- package/stage/1.js +22 -4
- package/stage/2.js +4 -1
- package/stage/3.js +4 -6
- package/stage/4.js +6 -1
- package/stage/index.js +1 -1
- package/stage/pre.js +10 -10
- package/web/dom-collections.js +1 -1
- package/web/immediate.js +1 -1
- package/web/index.js +1 -1
- package/web/timers.js +1 -1
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if(isArray(original)){
|
|
8
|
-
C = original.constructor;
|
|
9
|
-
// cross-realm fallback
|
|
10
|
-
if(typeof C == 'function' && (C === Array || isArray(C.prototype)))C = undefined;
|
|
11
|
-
if(isObject(C)){
|
|
12
|
-
C = C[SPECIES];
|
|
13
|
-
if(C === null)C = undefined;
|
|
14
|
-
}
|
|
15
|
-
} return new (C === undefined ? Array : C)(length);
|
|
16
|
-
};
|
|
2
|
+
var speciesConstructor = require('./_array-species-constructor');
|
|
3
|
+
|
|
4
|
+
module.exports = function (original, length) {
|
|
5
|
+
return new (speciesConstructor(original))(length);
|
|
6
|
+
};
|
package/library/modules/_bind.js
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var aFunction
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var aFunction = require('./_a-function');
|
|
3
|
+
var isObject = require('./_is-object');
|
|
4
|
+
var invoke = require('./_invoke');
|
|
5
|
+
var arraySlice = [].slice;
|
|
6
|
+
var factories = {};
|
|
7
7
|
|
|
8
|
-
var construct = function(F, len, args){
|
|
9
|
-
if(!(len in factories)){
|
|
10
|
-
for(var n = [], i = 0; i < len; i++)n[i] = 'a[' + i + ']';
|
|
8
|
+
var construct = function (F, len, args) {
|
|
9
|
+
if (!(len in factories)) {
|
|
10
|
+
for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';
|
|
11
|
+
// eslint-disable-next-line no-new-func
|
|
11
12
|
factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
|
|
12
13
|
} return factories[len](F, args);
|
|
13
14
|
};
|
|
14
15
|
|
|
15
|
-
module.exports = Function.bind || function bind(that
|
|
16
|
-
var fn
|
|
17
|
-
|
|
18
|
-
var bound = function(/* args... */){
|
|
16
|
+
module.exports = Function.bind || function bind(that /* , ...args */) {
|
|
17
|
+
var fn = aFunction(this);
|
|
18
|
+
var partArgs = arraySlice.call(arguments, 1);
|
|
19
|
+
var bound = function (/* args... */) {
|
|
19
20
|
var args = partArgs.concat(arraySlice.call(arguments));
|
|
20
21
|
return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
|
|
21
22
|
};
|
|
22
|
-
if(isObject(fn.prototype))bound.prototype = fn.prototype;
|
|
23
|
+
if (isObject(fn.prototype)) bound.prototype = fn.prototype;
|
|
23
24
|
return bound;
|
|
24
|
-
};
|
|
25
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// getting tag from 19.1.3.6 Object.prototype.toString()
|
|
2
|
-
var cof = require('./_cof')
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
var cof = require('./_cof');
|
|
3
|
+
var TAG = require('./_wks')('toStringTag');
|
|
4
|
+
// ES3 wrong here
|
|
5
|
+
var ARG = cof(function () { return arguments; }()) == 'Arguments';
|
|
6
6
|
|
|
7
7
|
// fallback for IE11 Script Access Denied error
|
|
8
|
-
var tryGet = function(it, key){
|
|
8
|
+
var tryGet = function (it, key) {
|
|
9
9
|
try {
|
|
10
10
|
return it[key];
|
|
11
|
-
} catch(e){ /* empty */ }
|
|
11
|
+
} catch (e) { /* empty */ }
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
module.exports = function(it){
|
|
14
|
+
module.exports = function (it) {
|
|
15
15
|
var O, T, B;
|
|
16
16
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
17
17
|
// @@toStringTag case
|
|
@@ -20,4 +20,4 @@ module.exports = function(it){
|
|
|
20
20
|
: ARG ? cof(O)
|
|
21
21
|
// ES3 arguments fallback
|
|
22
22
|
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
|
|
23
|
-
};
|
|
23
|
+
};
|
package/library/modules/_cof.js
CHANGED
|
@@ -1,46 +1,47 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var dP
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
, SIZE = DESCRIPTORS ? '_s' : 'size';
|
|
2
|
+
var dP = require('./_object-dp').f;
|
|
3
|
+
var create = require('./_object-create');
|
|
4
|
+
var redefineAll = require('./_redefine-all');
|
|
5
|
+
var ctx = require('./_ctx');
|
|
6
|
+
var anInstance = require('./_an-instance');
|
|
7
|
+
var forOf = require('./_for-of');
|
|
8
|
+
var $iterDefine = require('./_iter-define');
|
|
9
|
+
var step = require('./_iter-step');
|
|
10
|
+
var setSpecies = require('./_set-species');
|
|
11
|
+
var DESCRIPTORS = require('./_descriptors');
|
|
12
|
+
var fastKey = require('./_meta').fastKey;
|
|
13
|
+
var validate = require('./_validate-collection');
|
|
14
|
+
var SIZE = DESCRIPTORS ? '_s' : 'size';
|
|
16
15
|
|
|
17
|
-
var getEntry = function(that, key){
|
|
16
|
+
var getEntry = function (that, key) {
|
|
18
17
|
// fast case
|
|
19
|
-
var index = fastKey(key)
|
|
20
|
-
|
|
18
|
+
var index = fastKey(key);
|
|
19
|
+
var entry;
|
|
20
|
+
if (index !== 'F') return that._i[index];
|
|
21
21
|
// frozen object case
|
|
22
|
-
for(entry = that._f; entry; entry = entry.n){
|
|
23
|
-
if(entry.k == key)return entry;
|
|
22
|
+
for (entry = that._f; entry; entry = entry.n) {
|
|
23
|
+
if (entry.k == key) return entry;
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
module.exports = {
|
|
28
|
-
getConstructor: function(wrapper, NAME, IS_MAP, ADDER){
|
|
29
|
-
var C = wrapper(function(that, iterable){
|
|
28
|
+
getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
|
|
29
|
+
var C = wrapper(function (that, iterable) {
|
|
30
30
|
anInstance(that, C, NAME, '_i');
|
|
31
|
+
that._t = NAME; // collection type
|
|
31
32
|
that._i = create(null); // index
|
|
32
33
|
that._f = undefined; // first entry
|
|
33
34
|
that._l = undefined; // last entry
|
|
34
35
|
that[SIZE] = 0; // size
|
|
35
|
-
if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);
|
|
36
|
+
if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
|
|
36
37
|
});
|
|
37
38
|
redefineAll(C.prototype, {
|
|
38
39
|
// 23.1.3.1 Map.prototype.clear()
|
|
39
40
|
// 23.2.3.2 Set.prototype.clear()
|
|
40
|
-
clear: function clear(){
|
|
41
|
-
for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){
|
|
41
|
+
clear: function clear() {
|
|
42
|
+
for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
|
|
42
43
|
entry.r = true;
|
|
43
|
-
if(entry.p)entry.p = entry.p.n = undefined;
|
|
44
|
+
if (entry.p) entry.p = entry.p.n = undefined;
|
|
44
45
|
delete data[entry.i];
|
|
45
46
|
}
|
|
46
47
|
that._f = that._l = undefined;
|
|
@@ -48,51 +49,51 @@ module.exports = {
|
|
|
48
49
|
},
|
|
49
50
|
// 23.1.3.3 Map.prototype.delete(key)
|
|
50
51
|
// 23.2.3.4 Set.prototype.delete(value)
|
|
51
|
-
'delete': function(key){
|
|
52
|
-
var that
|
|
53
|
-
|
|
54
|
-
if(entry){
|
|
55
|
-
var next = entry.n
|
|
56
|
-
|
|
52
|
+
'delete': function (key) {
|
|
53
|
+
var that = validate(this, NAME);
|
|
54
|
+
var entry = getEntry(that, key);
|
|
55
|
+
if (entry) {
|
|
56
|
+
var next = entry.n;
|
|
57
|
+
var prev = entry.p;
|
|
57
58
|
delete that._i[entry.i];
|
|
58
59
|
entry.r = true;
|
|
59
|
-
if(prev)prev.n = next;
|
|
60
|
-
if(next)next.p = prev;
|
|
61
|
-
if(that._f == entry)that._f = next;
|
|
62
|
-
if(that._l == entry)that._l = prev;
|
|
60
|
+
if (prev) prev.n = next;
|
|
61
|
+
if (next) next.p = prev;
|
|
62
|
+
if (that._f == entry) that._f = next;
|
|
63
|
+
if (that._l == entry) that._l = prev;
|
|
63
64
|
that[SIZE]--;
|
|
64
65
|
} return !!entry;
|
|
65
66
|
},
|
|
66
67
|
// 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
|
|
67
68
|
// 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
|
|
68
|
-
forEach: function forEach(callbackfn
|
|
69
|
-
|
|
70
|
-
var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3)
|
|
71
|
-
|
|
72
|
-
while(entry = entry ? entry.n : this._f){
|
|
69
|
+
forEach: function forEach(callbackfn /* , that = undefined */) {
|
|
70
|
+
validate(this, NAME);
|
|
71
|
+
var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
|
|
72
|
+
var entry;
|
|
73
|
+
while (entry = entry ? entry.n : this._f) {
|
|
73
74
|
f(entry.v, entry.k, this);
|
|
74
75
|
// revert to the last existing entry
|
|
75
|
-
while(entry && entry.r)entry = entry.p;
|
|
76
|
+
while (entry && entry.r) entry = entry.p;
|
|
76
77
|
}
|
|
77
78
|
},
|
|
78
79
|
// 23.1.3.7 Map.prototype.has(key)
|
|
79
80
|
// 23.2.3.7 Set.prototype.has(value)
|
|
80
|
-
has: function has(key){
|
|
81
|
-
return !!getEntry(this, key);
|
|
81
|
+
has: function has(key) {
|
|
82
|
+
return !!getEntry(validate(this, NAME), key);
|
|
82
83
|
}
|
|
83
84
|
});
|
|
84
|
-
if(DESCRIPTORS)dP(C.prototype, 'size', {
|
|
85
|
-
get: function(){
|
|
86
|
-
return
|
|
85
|
+
if (DESCRIPTORS) dP(C.prototype, 'size', {
|
|
86
|
+
get: function () {
|
|
87
|
+
return validate(this, NAME)[SIZE];
|
|
87
88
|
}
|
|
88
89
|
});
|
|
89
90
|
return C;
|
|
90
91
|
},
|
|
91
|
-
def: function(that, key, value){
|
|
92
|
-
var entry = getEntry(that, key)
|
|
93
|
-
|
|
92
|
+
def: function (that, key, value) {
|
|
93
|
+
var entry = getEntry(that, key);
|
|
94
|
+
var prev, index;
|
|
94
95
|
// change existing entry
|
|
95
|
-
if(entry){
|
|
96
|
+
if (entry) {
|
|
96
97
|
entry.v = value;
|
|
97
98
|
// create new entry
|
|
98
99
|
} else {
|
|
@@ -104,40 +105,40 @@ module.exports = {
|
|
|
104
105
|
n: undefined, // <- next entry
|
|
105
106
|
r: false // <- removed
|
|
106
107
|
};
|
|
107
|
-
if(!that._f)that._f = entry;
|
|
108
|
-
if(prev)prev.n = entry;
|
|
108
|
+
if (!that._f) that._f = entry;
|
|
109
|
+
if (prev) prev.n = entry;
|
|
109
110
|
that[SIZE]++;
|
|
110
111
|
// add to index
|
|
111
|
-
if(index !== 'F')that._i[index] = entry;
|
|
112
|
+
if (index !== 'F') that._i[index] = entry;
|
|
112
113
|
} return that;
|
|
113
114
|
},
|
|
114
115
|
getEntry: getEntry,
|
|
115
|
-
setStrong: function(C, NAME, IS_MAP){
|
|
116
|
+
setStrong: function (C, NAME, IS_MAP) {
|
|
116
117
|
// add .keys, .values, .entries, [@@iterator]
|
|
117
118
|
// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
|
|
118
|
-
$iterDefine(C, NAME, function(iterated, kind){
|
|
119
|
-
this._t = iterated;
|
|
120
|
-
this._k = kind;
|
|
121
|
-
this._l = undefined;
|
|
122
|
-
}, function(){
|
|
123
|
-
var that
|
|
124
|
-
|
|
125
|
-
|
|
119
|
+
$iterDefine(C, NAME, function (iterated, kind) {
|
|
120
|
+
this._t = validate(iterated, NAME); // target
|
|
121
|
+
this._k = kind; // kind
|
|
122
|
+
this._l = undefined; // previous
|
|
123
|
+
}, function () {
|
|
124
|
+
var that = this;
|
|
125
|
+
var kind = that._k;
|
|
126
|
+
var entry = that._l;
|
|
126
127
|
// revert to the last existing entry
|
|
127
|
-
while(entry && entry.r)entry = entry.p;
|
|
128
|
+
while (entry && entry.r) entry = entry.p;
|
|
128
129
|
// get next entry
|
|
129
|
-
if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){
|
|
130
|
+
if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
|
|
130
131
|
// or finish the iteration
|
|
131
132
|
that._t = undefined;
|
|
132
133
|
return step(1);
|
|
133
134
|
}
|
|
134
135
|
// return step by kind
|
|
135
|
-
if(kind == 'keys'
|
|
136
|
-
if(kind == 'values')return step(0, entry.v);
|
|
136
|
+
if (kind == 'keys') return step(0, entry.k);
|
|
137
|
+
if (kind == 'values') return step(0, entry.v);
|
|
137
138
|
return step(0, [entry.k, entry.v]);
|
|
138
|
-
}, IS_MAP ? 'entries' : 'values'
|
|
139
|
+
}, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
|
|
139
140
|
|
|
140
141
|
// add [@@species], 23.1.2.2, 23.2.2.2
|
|
141
142
|
setSpecies(NAME);
|
|
142
143
|
}
|
|
143
|
-
};
|
|
144
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
|
|
2
|
-
var classof = require('./_classof')
|
|
3
|
-
|
|
4
|
-
module.exports = function(NAME){
|
|
5
|
-
return function toJSON(){
|
|
6
|
-
if(classof(this) != NAME)throw TypeError(NAME + "#toJSON isn't generic");
|
|
2
|
+
var classof = require('./_classof');
|
|
3
|
+
var from = require('./_array-from-iterable');
|
|
4
|
+
module.exports = function (NAME) {
|
|
5
|
+
return function toJSON() {
|
|
6
|
+
if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic");
|
|
7
7
|
return from(this);
|
|
8
8
|
};
|
|
9
|
-
};
|
|
9
|
+
};
|
|
@@ -1,83 +1,85 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var redefineAll
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
var redefineAll = require('./_redefine-all');
|
|
3
|
+
var getWeak = require('./_meta').getWeak;
|
|
4
|
+
var anObject = require('./_an-object');
|
|
5
|
+
var isObject = require('./_is-object');
|
|
6
|
+
var anInstance = require('./_an-instance');
|
|
7
|
+
var forOf = require('./_for-of');
|
|
8
|
+
var createArrayMethod = require('./_array-methods');
|
|
9
|
+
var $has = require('./_has');
|
|
10
|
+
var validate = require('./_validate-collection');
|
|
11
|
+
var arrayFind = createArrayMethod(5);
|
|
12
|
+
var arrayFindIndex = createArrayMethod(6);
|
|
13
|
+
var id = 0;
|
|
13
14
|
|
|
14
15
|
// fallback for uncaught frozen keys
|
|
15
|
-
var uncaughtFrozenStore = function(that){
|
|
16
|
-
return that._l || (that._l = new UncaughtFrozenStore);
|
|
16
|
+
var uncaughtFrozenStore = function (that) {
|
|
17
|
+
return that._l || (that._l = new UncaughtFrozenStore());
|
|
17
18
|
};
|
|
18
|
-
var UncaughtFrozenStore = function(){
|
|
19
|
+
var UncaughtFrozenStore = function () {
|
|
19
20
|
this.a = [];
|
|
20
21
|
};
|
|
21
|
-
var findUncaughtFrozen = function(store, key){
|
|
22
|
-
return arrayFind(store.a, function(it){
|
|
22
|
+
var findUncaughtFrozen = function (store, key) {
|
|
23
|
+
return arrayFind(store.a, function (it) {
|
|
23
24
|
return it[0] === key;
|
|
24
25
|
});
|
|
25
26
|
};
|
|
26
27
|
UncaughtFrozenStore.prototype = {
|
|
27
|
-
get: function(key){
|
|
28
|
+
get: function (key) {
|
|
28
29
|
var entry = findUncaughtFrozen(this, key);
|
|
29
|
-
if(entry)return entry[1];
|
|
30
|
+
if (entry) return entry[1];
|
|
30
31
|
},
|
|
31
|
-
has: function(key){
|
|
32
|
+
has: function (key) {
|
|
32
33
|
return !!findUncaughtFrozen(this, key);
|
|
33
34
|
},
|
|
34
|
-
set: function(key, value){
|
|
35
|
+
set: function (key, value) {
|
|
35
36
|
var entry = findUncaughtFrozen(this, key);
|
|
36
|
-
if(entry)entry[1] = value;
|
|
37
|
+
if (entry) entry[1] = value;
|
|
37
38
|
else this.a.push([key, value]);
|
|
38
39
|
},
|
|
39
|
-
'delete': function(key){
|
|
40
|
-
var index = arrayFindIndex(this.a, function(it){
|
|
40
|
+
'delete': function (key) {
|
|
41
|
+
var index = arrayFindIndex(this.a, function (it) {
|
|
41
42
|
return it[0] === key;
|
|
42
43
|
});
|
|
43
|
-
if(~index)this.a.splice(index, 1);
|
|
44
|
+
if (~index) this.a.splice(index, 1);
|
|
44
45
|
return !!~index;
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
|
|
48
49
|
module.exports = {
|
|
49
|
-
getConstructor: function(wrapper, NAME, IS_MAP, ADDER){
|
|
50
|
-
var C = wrapper(function(that, iterable){
|
|
50
|
+
getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {
|
|
51
|
+
var C = wrapper(function (that, iterable) {
|
|
51
52
|
anInstance(that, C, NAME, '_i');
|
|
53
|
+
that._t = NAME; // collection type
|
|
52
54
|
that._i = id++; // collection id
|
|
53
55
|
that._l = undefined; // leak store for uncaught frozen objects
|
|
54
|
-
if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);
|
|
56
|
+
if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);
|
|
55
57
|
});
|
|
56
58
|
redefineAll(C.prototype, {
|
|
57
59
|
// 23.3.3.2 WeakMap.prototype.delete(key)
|
|
58
60
|
// 23.4.3.3 WeakSet.prototype.delete(value)
|
|
59
|
-
'delete': function(key){
|
|
60
|
-
if(!isObject(key))return false;
|
|
61
|
+
'delete': function (key) {
|
|
62
|
+
if (!isObject(key)) return false;
|
|
61
63
|
var data = getWeak(key);
|
|
62
|
-
if(data === true)return uncaughtFrozenStore(this)['delete'](key);
|
|
64
|
+
if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);
|
|
63
65
|
return data && $has(data, this._i) && delete data[this._i];
|
|
64
66
|
},
|
|
65
67
|
// 23.3.3.4 WeakMap.prototype.has(key)
|
|
66
68
|
// 23.4.3.4 WeakSet.prototype.has(value)
|
|
67
|
-
has: function has(key){
|
|
68
|
-
if(!isObject(key))return false;
|
|
69
|
+
has: function has(key) {
|
|
70
|
+
if (!isObject(key)) return false;
|
|
69
71
|
var data = getWeak(key);
|
|
70
|
-
if(data === true)return uncaughtFrozenStore(this).has(key);
|
|
72
|
+
if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);
|
|
71
73
|
return data && $has(data, this._i);
|
|
72
74
|
}
|
|
73
75
|
});
|
|
74
76
|
return C;
|
|
75
77
|
},
|
|
76
|
-
def: function(that, key, value){
|
|
78
|
+
def: function (that, key, value) {
|
|
77
79
|
var data = getWeak(anObject(key), true);
|
|
78
|
-
if(data === true)uncaughtFrozenStore(that).set(key, value);
|
|
80
|
+
if (data === true) uncaughtFrozenStore(that).set(key, value);
|
|
79
81
|
else data[that._i] = value;
|
|
80
82
|
return that;
|
|
81
83
|
},
|
|
82
84
|
ufstore: uncaughtFrozenStore
|
|
83
|
-
};
|
|
85
|
+
};
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
var global
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
var global = require('./_global');
|
|
3
|
+
var $export = require('./_export');
|
|
4
|
+
var meta = require('./_meta');
|
|
5
|
+
var fails = require('./_fails');
|
|
6
|
+
var hide = require('./_hide');
|
|
7
|
+
var redefineAll = require('./_redefine-all');
|
|
8
|
+
var forOf = require('./_for-of');
|
|
9
|
+
var anInstance = require('./_an-instance');
|
|
10
|
+
var isObject = require('./_is-object');
|
|
11
|
+
var setToStringTag = require('./_set-to-string-tag');
|
|
12
|
+
var dP = require('./_object-dp').f;
|
|
13
|
+
var each = require('./_array-methods')(0);
|
|
14
|
+
var DESCRIPTORS = require('./_descriptors');
|
|
15
15
|
|
|
16
|
-
module.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){
|
|
17
|
-
var Base
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
if(!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){
|
|
16
|
+
module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
|
|
17
|
+
var Base = global[NAME];
|
|
18
|
+
var C = Base;
|
|
19
|
+
var ADDER = IS_MAP ? 'set' : 'add';
|
|
20
|
+
var proto = C && C.prototype;
|
|
21
|
+
var O = {};
|
|
22
|
+
if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {
|
|
23
23
|
new C().entries().next();
|
|
24
|
-
}))){
|
|
24
|
+
}))) {
|
|
25
25
|
// create collection constructor
|
|
26
26
|
C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
|
|
27
27
|
redefineAll(C.prototype, methods);
|
|
28
28
|
meta.NEED = true;
|
|
29
29
|
} else {
|
|
30
|
-
C = wrapper(function(target, iterable){
|
|
30
|
+
C = wrapper(function (target, iterable) {
|
|
31
31
|
anInstance(target, C, NAME, '_c');
|
|
32
|
-
target._c = new Base;
|
|
33
|
-
if(iterable != undefined)forOf(iterable, IS_MAP, target[ADDER], target);
|
|
32
|
+
target._c = new Base();
|
|
33
|
+
if (iterable != undefined) forOf(iterable, IS_MAP, target[ADDER], target);
|
|
34
34
|
});
|
|
35
|
-
each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','),function(KEY){
|
|
35
|
+
each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) {
|
|
36
36
|
var IS_ADDER = KEY == 'add' || KEY == 'set';
|
|
37
|
-
if(KEY in proto && !(IS_WEAK && KEY == 'clear'))hide(C.prototype, KEY, function(a, b){
|
|
37
|
+
if (KEY in proto && !(IS_WEAK && KEY == 'clear')) hide(C.prototype, KEY, function (a, b) {
|
|
38
38
|
anInstance(this, C, KEY);
|
|
39
|
-
if(!IS_ADDER && IS_WEAK && !isObject(a))return KEY == 'get' ? undefined : false;
|
|
39
|
+
if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;
|
|
40
40
|
var result = this._c[KEY](a === 0 ? 0 : a, b);
|
|
41
41
|
return IS_ADDER ? this : result;
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
|
|
45
|
-
get: function(){
|
|
44
|
+
IS_WEAK || dP(C.prototype, 'size', {
|
|
45
|
+
get: function () {
|
|
46
46
|
return this._c.size;
|
|
47
47
|
}
|
|
48
48
|
});
|
|
@@ -53,7 +53,7 @@ module.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK){
|
|
|
53
53
|
O[NAME] = C;
|
|
54
54
|
$export($export.G + $export.W + $export.F, O);
|
|
55
55
|
|
|
56
|
-
if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);
|
|
56
|
+
if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
|
|
57
57
|
|
|
58
58
|
return C;
|
|
59
|
-
};
|
|
59
|
+
};
|
package/library/modules/_core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var core = module.exports = {version: '2.
|
|
2
|
-
if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
|
|
1
|
+
var core = module.exports = { version: '2.5.0' };
|
|
2
|
+
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
var $defineProperty = require('./_object-dp')
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports = function(object, index, value){
|
|
6
|
-
if(index in object)$defineProperty.f(object, index, createDesc(0, value));
|
|
7
|
-
else object[index] = value;
|
|
8
|
-
};
|
|
1
|
+
'use strict';
|
|
2
|
+
var $defineProperty = require('./_object-dp');
|
|
3
|
+
var createDesc = require('./_property-desc');
|
|
4
|
+
|
|
5
|
+
module.exports = function (object, index, value) {
|
|
6
|
+
if (index in object) $defineProperty.f(object, index, createDesc(0, value));
|
|
7
|
+
else object[index] = value;
|
|
8
|
+
};
|
package/library/modules/_ctx.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
// optional / simple context binding
|
|
2
2
|
var aFunction = require('./_a-function');
|
|
3
|
-
module.exports = function(fn, that, length){
|
|
3
|
+
module.exports = function (fn, that, length) {
|
|
4
4
|
aFunction(fn);
|
|
5
|
-
if(that === undefined)return fn;
|
|
6
|
-
switch(length){
|
|
7
|
-
case 1: return function(a){
|
|
5
|
+
if (that === undefined) return fn;
|
|
6
|
+
switch (length) {
|
|
7
|
+
case 1: return function (a) {
|
|
8
8
|
return fn.call(that, a);
|
|
9
9
|
};
|
|
10
|
-
case 2: return function(a, b){
|
|
10
|
+
case 2: return function (a, b) {
|
|
11
11
|
return fn.call(that, a, b);
|
|
12
12
|
};
|
|
13
|
-
case 3: return function(a, b, c){
|
|
13
|
+
case 3: return function (a, b, c) {
|
|
14
14
|
return fn.call(that, a, b, c);
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
return function(/* ...args */){
|
|
17
|
+
return function (/* ...args */) {
|
|
18
18
|
return fn.apply(that, arguments);
|
|
19
19
|
};
|
|
20
|
-
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
|
|
3
|
+
var fails = require('./_fails');
|
|
4
|
+
var getTime = Date.prototype.getTime;
|
|
5
|
+
var $toISOString = Date.prototype.toISOString;
|
|
6
|
+
|
|
7
|
+
var lz = function (num) {
|
|
8
|
+
return num > 9 ? num : '0' + num;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// PhantomJS / old WebKit has a broken implementations
|
|
12
|
+
module.exports = (fails(function () {
|
|
13
|
+
return $toISOString.call(new Date(-5e13 - 1)) != '0385-07-25T07:06:39.999Z';
|
|
14
|
+
}) || !fails(function () {
|
|
15
|
+
$toISOString.call(new Date(NaN));
|
|
16
|
+
})) ? function toISOString() {
|
|
17
|
+
if (!isFinite(getTime.call(this))) throw RangeError('Invalid time value');
|
|
18
|
+
var d = this;
|
|
19
|
+
var y = d.getUTCFullYear();
|
|
20
|
+
var m = d.getUTCMilliseconds();
|
|
21
|
+
var s = y < 0 ? '-' : y > 9999 ? '+' : '';
|
|
22
|
+
return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) +
|
|
23
|
+
'-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) +
|
|
24
|
+
'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) +
|
|
25
|
+
':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z';
|
|
26
|
+
} : $toISOString;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
var anObject
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
module.exports = function(hint){
|
|
7
|
-
if(hint !== 'string' && hint !== NUMBER && hint !== 'default')throw TypeError('Incorrect hint');
|
|
8
|
-
return toPrimitive(anObject(this), hint != NUMBER);
|
|
9
|
-
};
|
|
1
|
+
'use strict';
|
|
2
|
+
var anObject = require('./_an-object');
|
|
3
|
+
var toPrimitive = require('./_to-primitive');
|
|
4
|
+
var NUMBER = 'number';
|
|
5
|
+
|
|
6
|
+
module.exports = function (hint) {
|
|
7
|
+
if (hint !== 'string' && hint !== NUMBER && hint !== 'default') throw TypeError('Incorrect hint');
|
|
8
|
+
return toPrimitive(anObject(this), hint != NUMBER);
|
|
9
|
+
};
|