(x, y)
| 1 | const areArraysEqual = (x, y) => { |
| 2 | if (x.byteLength !== y.byteLength) return false; |
| 3 | const xView = new Uint8Array(x), |
| 4 | yView = new Uint8Array(y); |
| 5 | for (let i = 0; i < x.byteLength; i++) { |
| 6 | if (xView[i] !== yView[i]) return false; |
| 7 | } |
| 8 | return true; |
| 9 | }; |
| 10 | |
| 11 | const createArrayBuffer = (array) => { |
| 12 | class="cm">// Uint8Array.from() is not defined in IE 10/11 |
no outgoing calls
no test coverage detected