TypeScriptStringincludes
endsWith

includesString

slice

Determines whether an array includes a certain value among its entries.

Syntax

str.includes(searchStr, position?): boolean