buf.entries()
- Return: <Iterator>
Creates and returns an iterator of [index, byte]
pairs from the Buffer contents.
const buf = Buffer.from('buffer'); for (var pair of buf.entries()) { console.log(pair); } // prints: // [0, 98] // [1, 117] // [2, 102] // [3, 102] // [4, 101] // [5, 114]
Please login to continue.