@uifabric/experiments
Version:
Experimental React components for building experiences for Microsoft 365.
16 lines • 577 B
JavaScript
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNextSuggestionIndex = function (suggestions, currentIndex) {
if (suggestions && suggestions.length) {
if (currentIndex < suggestions.length - 1) {
return currentIndex + 1;
}
else if (currentIndex === suggestions.length - 1) {
return 0;
}
}
return -1;
};
});
//# sourceMappingURL=getNextSuggestionIndex.js.map