array-reverse-polyfill

Fix IOS 12 Array Reverse Bug.

Usage no npm install needed!

<script type="module">
  import arrayReversePolyfill from 'https://cdn.skypack.dev/array-reverse-polyfill';
</script>

README

array-reverse-polyfill

Fixed Array Reverse Bug On iOS 12. (See the bug: https://stackoverflow.com/questions/52390368/array-state-will-be-cached-in-ios-12-safari-is-bug-or-feature/52392901#52392901)

Use

Use release version https://github.com/fanmingfei/array-reverse-ios12/releases

CDN

<script src="//g.alicdn.com/mtb/fix-ios12-array/1.0.9/index.js"></script>

NPM

import 'array-reverse-polyfill'

Test

For Not fixed: https://fanmingfei.github.io/array-reverse-ios12/origin.html

For Fixed: https://fanmingfei.github.io/array-reverse-ios12/fixed.html

For Unit Test: https://fanmingfei.github.io/array-reverse-ios12/tests/

Clicking the refresh button to reload page.


Hope you guys luck