Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private suggestions() {
this.checkInitialized();
const suggestions: Suggester[] = [];
const extensionSuggesters = this.extensions
.filter(hasExtensionProperty('suggestions'))
.filter(extension => !extension.options.exclude.suggestions)
.map(extensionPropertyMapper('suggestions', this.params));
extensionSuggesters.forEach(suggester => {
suggestions.push(...(isArray(suggester) ? suggester : [suggester]));
});
return suggest(...suggestions);
}