method Buffer.keys
Usage in Deno
import { type Buffer } from "node:buffer";
Buffer.keys(): IterableIterator<number>
Creates and returns an iterator of buf
keys (indices).
import { Buffer } from 'node:buffer'; const buf = Buffer.from('buffer'); for (const key of buf.keys()) { console.log(key); } // Prints: // 0 // 1 // 2 // 3 // 4 // 5
IterableIterator<number>