has-trailing-slash
Checks if a string has a trailing slash
Installation
with npm:
$ npm install has-trailing-slash
API
hasTrailingSlash(str)
Checks if str
ends with /
Example
const hasTrailingSlashes = ; tobetrue;
License
MIT