Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const filteredNavItems = this.state.navItems.slice().map(section => ({
...section,
nestedItems: Autocomplete.fuzzyFilter(section.nestedItems, value, 'primaryText'),
}));
const filteredNavItems = this.state.navItems.slice().map(section => ({
...section,
nestedItems: Autocomplete.fuzzyFilter(section.nestedItems, value, 'primaryText'),
}));
const filteredNavItems = this.state.navItems.slice().map(section => ({
...section,
nestedItems: Autocomplete.fuzzyFilter(section.nestedItems, value, 'primaryText'),
}));
_filterAndInjectHeaders = (filterText = '') => {
if (!filterText) { return []; }
const filtered = Autocomplete.fuzzyFilter(programmingLanguages, filterText);
LETTERS.forEach(l => {
const i = findIndex(filtered, pl => typeof pl.charAt === 'function' && pl.charAt(0).toUpperCase() === l);
if (i >= 0) {
filtered.splice(i, 0, );
}
});
return filtered;
};