Skip to main content
Module

x/mysql2/index.d.ts>Buffer#keys

MySQL client for Deno with focus on performance. Supports prepared statements, non-utf8 encodings, binary log protocol, compression much more
Latest
method Buffer.prototype.keys
Re-export
import { Buffer } from "https://deno.land/x/mysql2@v1.0.6/index.d.ts";

Creates and returns an iterator of buf keys (indices).

import { Buffer } from 'buffer';

const buf = Buffer.from('buffer');

for (const key of buf.keys()) {
  console.log(key);
}
// Prints:
//   0
//   1
//   2
//   3
//   4
//   5

Returns

IterableIterator<number>