Skip to main content

findSubstringStartOffset

Overview

findSubstringStartOffset

(str, searchStr): `number` | `null`

Convenience method to get a substring's start offset.

Parameters

NameType
strstring
searchStrstring

Returns

number | null

Defined in

strings/mod.ts:53