Skip to main content
Module

x/ddc_vim/deps.ts>fn.count

Dark deno-powered completion framework for neovim/Vim
Latest
function fn.count
import { fn } from "https://deno.land/x/ddc_vim@v4.3.1/deps.ts";
const { count } = fn;

Return the number of times an item with value {expr} appears in String, List or Dictionary {comp}.

If {start} is given then start with the item with this index. {start} can only be used with a List.

When {ic} is given and it's TRUE then case is ignored.

When {comp} is a string then the number of not overlapping occurrences of {expr} is returned. Zero is returned when {expr} is an empty string.

Can also be used as a method:

mylist->count(val)

Parameters

denops: Denops
comp: unknown
expr: unknown
optional
ic: unknown
optional
start: unknown

Returns

Promise<number>