Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddu_vim/deps.ts>fn.strchr

Dark deno-powered UI framework for neovim/Vim8
Go to Latest
function fn.strchr
import { fn } from "https://deno.land/x/ddu_vim@v1.13.0/deps.ts";
const { strchr } = fn;

stridx() works similar to the C function strstr(). When used with a single character it works similar to strchr(). Can also be used as a |method|: GetHaystack()->stridx(needle)

Returns

Promise<unknown>