Skip to main content
Module

x/ddc_vim/deps.ts>fn.len

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

When {expr} is a String or a Number the length in bytes is used, as with |strlen()|. When {expr} is a |List| the number of items in the |List| is returned. When {expr} is a |Blob| the number of bytes is returned. When {expr} is a |Dictionary| the number of entries in the |Dictionary| is returned. Otherwise an error is given. Can also be used as a |method|: mylist->len()

Parameters

denops: Denops
expr: unknown

Returns

Promise<unknown>