Skip to main content
Module

x/keywork/mod.ts>StringUtils.findSubstringStartOffset

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
function StringUtils.findSubstringStartOffset
import { StringUtils } from "https://deno.land/x/keywork@v6.0.1/mod.ts";
const { findSubstringStartOffset } = StringUtils;

Convenience method to get a substring's start offset.

Parameters

str: string
searchStr: string

Returns

number | null