Turn a `File` (or any `Blob`) into an `ArrayBuffer`.
npm install file-to-array-bufferTurn a File (or any Blob) into an ArrayBuffer.
``sh`
npm install --save file-to-array-buffer
`js
const fileToArrayBuffer = require('file-to-array-buffer')
//
const file = document.getElementById('fileItem').files[0]
fileToArrayBuffer(file).then((data) => {
console.log(data)
//=> ArrayBuffer {byteLength: ...}
})
`
Read the data of the file into an ArrayBuffer`.