@uifabric/experiments
Version:
Experimental React components for building experiences for Microsoft 365.
14 lines • 460 B
JavaScript
;
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