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

x/ddu_vim/deps.ts>fn.get

Dark deno-powered UI framework for neovim/Vim
Go to Latest
function fn.get
import { fn } from "https://deno.land/x/ddu_vim@v4.0.0/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>