UNPKG

506 BJavaScriptView Raw
1'use strict';
2var $ = require('../internals/export');
3var uncurryThis = require('../internals/function-uncurry-this');
4
5// eslint-disable-next-line es/no-typed-arrays -- safe
6var getUint8 = uncurryThis(DataView.prototype.getUint8);
7
8// `DataView.prototype.getUint8Clamped` method
9// https://github.com/tc39/proposal-dataview-get-set-uint8clamped
10$({ target: 'DataView', proto: true, forced: true }, {
11 getUint8Clamped: function getUint8Clamped(byteOffset) {
12 return getUint8(this, byteOffset);
13 }
14});