libs/ng-lib/src/lib/route-service/scully-routes.service.js
/**
     * internal, as routes can have multiple slugs, and so occur multiple times
     * this util function collapses all slugs back into 1 route.
     */
internal, as routes can have multiple slugs, and so occur multiple times
this util function collapses all slugs back into 1 route.
internal as routes can have multiple slugs and so occur multiple times this util function collapses all slugs back into 1 route .
cleanDups(routes) {
        const m = new Map();
        routes.forEach((r) => m.set(JSON.stringify(Object.assign(Object.assign({}, r), { route: hasOtherprops(r) ? '' : r.route })), r));
        return [...m.values()];
    }
cleanDups ( routes ) { const m = new Map ( ) ; routes . forEach ( ( r ) => m . set ( JSON . stringify ( Object . assign ( Object . assign ( { } , r ) , { route : hasOtherprops ( r ) ? '' : r . route } ) ) , r ) ) ; return [ ... m . values ( ) ] ; }
internal, as routes can have multiple slugs, and so occur multiple times
 this util function collapses all slugs back into 1 route.
internal as routes can have multiple slugs and so occur multiple times this util function collapses all slugs back into 1 route .
/** check for duplicates by comparing all, include route in comparison if its the only thing, or the only thing with only the tile  */