No Description

isDataView.js 529B

123456789101112131415
  1. define(['./_tagTester', './isFunction', './isArrayBuffer', './_stringTagBug'], function (_tagTester, isFunction, isArrayBuffer, _stringTagBug) {
  2. var isDataView = _tagTester('DataView');
  3. // In IE 10 - Edge 13, we need a different heuristic
  4. // to determine whether an object is a `DataView`.
  5. function ie10IsDataView(obj) {
  6. return obj != null && isFunction(obj.getInt8) && isArrayBuffer(obj.buffer);
  7. }
  8. var isDataView$1 = (_stringTagBug.hasStringTagBug ? ie10IsDataView : isDataView);
  9. return isDataView$1;
  10. });