1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports["default"] = void 0;
|
7 |
|
8 | /**
|
9 | * Truncates the result set based on `maxResults` and returns the new set.
|
10 | */
|
11 | function getTruncatedOptions(options, maxResults) {
|
12 | if (!maxResults || maxResults >= options.length) {
|
13 | return options;
|
14 | }
|
15 |
|
16 | return options.slice(0, maxResults);
|
17 | }
|
18 |
|
19 | var _default = getTruncatedOptions;
|
20 | exports["default"] = _default; |
\ | No newline at end of file |