/**
* Truncates the result set based on `maxResults` and returns the new set.
*/function getTruncatedOptions(options, maxResults){
if (!maxResults || maxResults >= options.length) {
return options;
}
return options.slice(0, maxResults);
}
exportdefault getTruncatedOptions;