Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/vim/mod.ts>test_refcount

๐Ÿ“š Standard module for denops.vim
Go to Latest
function test_refcount
import { test_refcount } from "https://deno.land/x/denops_std@v5.2.0/function/vim/mod.ts";

Return the reference count of {expr}. When {expr} is of a type that does not have a reference count, returns -1. Only to be used for testing.

Can also be used as a method:

GetVarname()->test_refcount()

Parameters

denops: Denops
expr: unknown

Returns

Promise<number>