Get your own website
var buf = Buffer.from('abc');

for (x of buf.keys()) {
  console.log(x);
}

              

0
1
2