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

x/ddc_vim/deps.ts>fn.get

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

Get item {idx} from List {list}. When this item is not available return {default}. Return zero when {default} is omitted. Preferably used as a method:

mylist->get(idx)

Parameters

denops: Denops
list: unknown
idx: unknown
optional
defaultValue: unknown

Returns

Promise<unknown>