buf.keys()
- Return: <Iterator>
Creates and returns an iterator of Buffer keys (indices).
const buf = Buffer.from('buffer');
for (var key of buf.keys()) {
console.log(key);
}
// prints:
// 0
// 1
// 2
// 3
// 4
// 5buf.keys()
Creates and returns an iterator of Buffer keys (indices).
const buf = Buffer.from('buffer');
for (var key of buf.keys()) {
console.log(key);
}
// prints:
// 0
// 1
// 2
// 3
// 4
// 5
Please login to continue.