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

x/ddc_vim/deps.ts>fn.has_key

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.has_key
import { fn } from "https://deno.land/x/ddc_vim@v3.8.0/deps.ts";
const { has_key } = fn;

The result is a Number, which is TRUE if Dictionary {dict} has an entry with key {key}. FALSE otherwise. The {key} argument is a string. In Vim9 script a number is also accepted (and converted to a string) but no other types. In legacy script the usual automatic conversion to string is done.

Can also be used as a method:

mydict->has_key(key)

Parameters

denops: Denops
dict: unknown
key: unknown

Returns

Promise<number>