Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more
Module

x/lunchbox/src/db.ts>kvIteratorToArray

Component Library 🍱 for Deno πŸ¦• Fresh πŸ‹
Latest
function kvIteratorToArray
import { kvIteratorToArray } from "https://deno.land/x/lunchbox@v1.0.2/src/db.ts";

kvIteratorToArray


This is a utility function that converts the iterator outputed from DenoKv's list operation to an array of the same type.

Parameters

kvIterator: Deno.KvListIterator<T>

The output of DenoKv list operations.

Returns

Promise<Deno.KvEntry<T>[]>

An array equivalent to the Kv list.