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.uint8-array.from-hex.js 457B

12345678910111213
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var globalThis = require('../internals/global-this');
  4. var aString = require('../internals/a-string');
  5. var $fromHex = require('../internals/uint8-from-hex');
  6. // `Uint8Array.fromHex` method
  7. // https://github.com/tc39/proposal-arraybuffer-base64
  8. if (globalThis.Uint8Array) $({ target: 'Uint8Array', stat: true }, {
  9. fromHex: function fromHex(string) {
  10. return $fromHex(aString(string)).bytes;
  11. }
  12. });