array-reverse-polyfill
Fixed Array Reverse Bug On iOS 12 and MacOS' Safari 12.0.
About Posts
https://bugs.webkit.org/show_bug.cgi?id=188794
https://stackoverflow.com/q/52390368/7606327
https://zhuanlan.zhihu.com/p/44869607
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>
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
Clicking the button to test.
For Unit Test: https://fanmingfei.github.io/array-reverse-ios12/tests/