graycoreio/daffodil

View on GitHub
libs/external-router/routing/src/helper/convert-to-path.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { UrlSegment } from '@angular/router';

/**
 * Converts a UrlSegment into its complete Url.
 *
 * @docs-private
 */
export const daffConvertToPath = (segments: UrlSegment[]) => segments.map(seg => seg.path).join('/');