Skip to main content
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@v6.4.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>