Skip to main content
Module

x/lunchbox/src/db.ts>kvIteratorToArray

Component Library 🍱 for Deno πŸ¦• Fresh πŸ‹
Latest
function kvIteratorToArray
import { kvIteratorToArray } from "https://deno.land/x/lunchbox@v0.3.109/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.