Skip to content

Commit ad48a7c

Browse files
author
Kylie Stewart
authored
Extend hasArrayBuffer check to support older IE 11 versions (#71)
1 parent 8253fc8 commit ad48a7c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,6 @@ Please see our [contributions guide](./CONTRIBUTING.md).
160160
[npm_site]: http://badge.fury.io/js/react-fast-compare
161161
[appveyor_img]: https://ci.appveyor.com/api/projects/status/github/formidablelabs/react-fast-compare?branch=master&svg=true
162162
[appveyor_site]: https://ci.appveyor.com/project/FormidableLabs/react-fast-compare
163-
[bundle_img]: https://img.shields.io/badge/minzipped%20size-622%20B-flatgreen.svg
163+
[bundle_img]: https://img.shields.io/badge/minzipped%20size-627%20B-flatgreen.svg
164164
[downloads_img]: https://img.shields.io/npm/dm/react-fast-compare.svg
165165
[maintenance_img]: https://img.shields.io/badge/maintenance-active-flatgreen.svg

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var hasElementType = typeof Element !== 'undefined';
44
var hasMap = typeof Map === 'function';
55
var hasSet = typeof Set === 'function';
6-
var hasArrayBuffer = typeof ArrayBuffer === 'function';
6+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
77

88
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
99

0 commit comments

Comments
 (0)