UNPKG

uint8arrays

Version:

Utility functions to make dealing with Uint8Arrays easier

21 lines (17 loc) 343 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function equals(a, b) { if (a === b) { return true; } if (a.byteLength !== b.byteLength) { return false; } for (let i = 0; i < a.byteLength; i++) { if (a[i] !== b[i]) { return false; } } return true; } exports.equals = equals;