-
Notifications
You must be signed in to change notification settings - Fork 1
EndsWith
ricardoboss edited this page Sep 13, 2023
·
1 revision
The endsWith
function returns true if the string ends with the specified value.
endsWith(string subject, string suffix)
-
subject
is the string to check. -
suffix
is the value to check for.
- The comparison is case-sensitive.
endsWith("Hello World", "World") // True
endsWith("Hello World", "Hello") // False
© 2023 Ricardo Boss • Licensed under MIT • Want to update this page? Edit it on GitHub and submit a pull request!