buf.values()
- Return: <Iterator>
Creates and returns an iterator for Buffer values (bytes). This function is called automatically when the Buffer is used in a for..of
statement.
const buf = Buffer.from('buffer'); for (var value of buf.values()) { console.log(value); } // prints: // 98 // 117 // 102 // 102 // 101 // 114 for (var value of buf) { console.log(value); } // prints: // 98 // 117 // 102 // 102 // 101 // 114
Please login to continue.