array-reverse-polyfill
Version:
Fix IOS 12 Array Reverse Bug.
36 lines (21 loc) • 1.18 kB
Markdown

# 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](https://github.com/fanmingfei/array-reverse-ios12/releases)
CDN
```html
<script src="//g.alicdn.com/mtb/fix-ios12-array/1.0.9/index.js"></script>
```
[NPM](https://www.npmjs.com/package/array-reverse-polyfill)
```javascript
import 'array-reverse-polyfill'
```
## Test
For Not fixed: [https://fanmingfei.github.io/array-reverse-ios12/origin.html](https://fanmingfei.github.io/array-reverse-ios12/origin.html)
For Fixed: [https://fanmingfei.github.io/array-reverse-ios12/fixed.html](https://fanmingfei.github.io/array-reverse-ios12/fixed.html)
For Unit Test: [https://fanmingfei.github.io/array-reverse-ios12/tests/](https://fanmingfei.github.io/array-reverse-ios12/tests/)
Clicking the refresh button to reload page.
--------------------------------
# Hope you guys luck