source: frontend/node_modules/underscore/modules/isDataView.js

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 
1import tagTester from './_tagTester.js';
2import isFunction from './isFunction.js';
3import isArrayBuffer from './isArrayBuffer.js';
4import { hasStringTagBug } from './_stringTagBug.js';
5
6var isDataView = tagTester('DataView');
7
8// In IE 10 - Edge 13, we need a different heuristic
9// to determine whether an object is a `DataView`.
10function ie10IsDataView(obj) {
11 return obj != null && isFunction(obj.getInt8) && isArrayBuffer(obj.buffer);
12}
13
14export default (hasStringTagBug ? ie10IsDataView : isDataView);
Note: See TracBrowser for help on using the repository browser.