/endswith

Component for checking the last characters of a string.

endswith

Component for checking the last characters of a string.

Some uses:
  1. Normalize trailing slashes in URLs.
  2. Check file extensions.
  3. Help plurality checks.