Handlebar Helper Function: IndexOf
Returns the character position where a search string exists within a subject string. The search is case-insensitive and uses 1-based indexing.
| Parameter | Type | Description |
|---|---|---|
subject | string | Required. The string to search within. |
search | string | Required. The string to find within the subject. |
The function returns the 1-based position where the search string is found in the subject string. If the search string isn’t found or if either parameter is null, it returns 0. The search is case-insensitive.