UNPKG

244 BJavaScriptView Raw
1'use strict';
2var classof = require('../internals/classof');
3
4var $TypeError = TypeError;
5
6module.exports = function (argument) {
7 if (classof(argument) === 'DataView') return argument;
8 throw new $TypeError('Argument is not a DataView');
9};