UNPKG

@ayonli/jsext

Version:

A JavaScript extension package for building strong and modern applications.

25 lines (23 loc) 837 B
import { copy, concat, compare, equals, includesSlice, startsWith, endsWith, split, chunk } from '../bytes.js'; Uint8Array.copy = copy; Uint8Array.concat = concat; Uint8Array.compare = compare; Uint8Array.prototype.equals = function equals$1(another) { return equals(this, another); }; Uint8Array.prototype.includesSlice = function includesSlice$1(slice) { return includesSlice(this, slice); }; Uint8Array.prototype.startsWith = function startsWith$1(prefix) { return startsWith(this, prefix); }; Uint8Array.prototype.endsWith = function endsWith$1(suffix) { return endsWith(this, suffix); }; Uint8Array.prototype.split = function split$1(delimiter) { return split(this, delimiter); }; Uint8Array.prototype.chunk = function chunk$1(length) { return chunk(this, length); }; //# sourceMappingURL=uint8array.js.map