Skip to main content
Module

x/denops_std/function/mod.ts>count

📚 Standard module for denops.vim
Go to Latest
function count
import { count } from "https://deno.land/x/denops_std@v4.1.3/function/mod.ts";

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<unknown>