Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.filter((item) => searchMatch(get(item, 'value.name'), this.get('searchValue')));
}),
let match = item => searchMatch(item.name, query) || item.childItems.some(match);
renderItems = renderItems.filter(match);
return this.model.filter(routeItem => {
let currentRoute = this.currentRoute;
let hideRoutes = this.get('options.hideRoutes');
let hideSubstates = this.get('options.hideSubstates');
if (hideRoutes && currentRoute) {
return checkCurrentRoute(currentRoute, routeItem.value);
}
if (hideSubstates && isRouteSubstate(routeItem.value.name)) {
return false;
}
if (!searchMatch(routeItem.value.name, this.searchValue)) {
return false;
}
return true;
});
}),
.filter((item) => searchMatch(get(item, 'name'), this.search));
}),
return this.deprecations.filter(item => searchMatch(item.message, this.search));
}),