|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
507 bytes
|
| Line | |
|---|
| 1 | import tagTester from './_tagTester.js';
|
|---|
| 2 | import isFunction from './isFunction.js';
|
|---|
| 3 | import isArrayBuffer from './isArrayBuffer.js';
|
|---|
| 4 | import { hasStringTagBug } from './_stringTagBug.js';
|
|---|
| 5 |
|
|---|
| 6 | var isDataView = tagTester('DataView');
|
|---|
| 7 |
|
|---|
| 8 | // In IE 10 - Edge 13, we need a different heuristic
|
|---|
| 9 | // to determine whether an object is a `DataView`.
|
|---|
| 10 | function ie10IsDataView(obj) {
|
|---|
| 11 | return obj != null && isFunction(obj.getInt8) && isArrayBuffer(obj.buffer);
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 | export default (hasStringTagBug ? ie10IsDataView : isDataView);
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.