Simple helper method that remove an ending slash / if present.
/
import { removeEndingSlash } from '@helpers4/url'console.log(removeEndingSlash('https://www.google.com/'))// => 'https://www.google.com'
var removeEndingSlash = require('@helpers4/url').removeEndingSlash;console.log(removeEndingSlash('https://www.google.com/'))// => 'https://www.google.com'
a valid URL
Generated using TypeDoc
Simple helper method that remove an ending slash
/
if present.Example (es module)
Example (commonjs)