Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

esnext.data-view.get-uint8-clamped.js 506B

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