Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.items

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.items
import { fn } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { items } = fn;

Return a List with all the key-value pairs of {dict}. Each List item is a list with two items: the key of a {dict} entry and the value of this entry. The List is in arbitrary order. Also see keys() and values(). Example:

for [key, value] in items(mydict)
   echo key .. ': ' .. value
endfor

Can also be used as a method:

mydict->items()

Parameters

denops: Denops
dict: unknown

Returns

Promise<unknown[]>