import { count } from "https://deno.land/x/denops_std@v6.1.0/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)