UNPKG

@jsenv/util

Version:

Set of functions often needed when using Node.js.

4 lines (3 loc) 96 B
export const ensureUrlTrailingSlash = (url) => { return url.endsWith("/") ? url : `${url}/` }