String.startsWith
, String.endsWith
, and String.includes
should have type assertion for when search string is a string subtype
#57929
Labels
Duplicate
An existing issue was already created
π Search Terms
"startsWith type assertion"
"endsWith type assertion"
"includes type assertion"
β Viability Checklist
β Suggestion
When I do
if (string.startsWith('https://'))
, I wishstring
turns into${'https://'}${string}
because I use string subtype heavily in my code.I wish for the following:
π Motivating Example
π» Use Cases
as
The text was updated successfully, but these errors were encountered: