UNPKG

@ayonli/jsext

Version:

A JavaScript extension package for building strong and modern applications.

27 lines (24 loc) 818 B
'use strict'; var bytes = require('../bytes.js'); Uint8Array.copy = bytes.copy; Uint8Array.concat = bytes.concat; Uint8Array.compare = bytes.compare; Uint8Array.prototype.equals = function equals(another) { return bytes.equals(this, another); }; Uint8Array.prototype.includesSlice = function includesSlice(slice) { return bytes.includesSlice(this, slice); }; Uint8Array.prototype.startsWith = function startsWith(prefix) { return bytes.startsWith(this, prefix); }; Uint8Array.prototype.endsWith = function endsWith(suffix) { return bytes.endsWith(this, suffix); }; Uint8Array.prototype.split = function split(delimiter) { return bytes.split(this, delimiter); }; Uint8Array.prototype.chunk = function chunk(length) { return bytes.chunk(this, length); }; //# sourceMappingURL=uint8array.js.map