@uifabric/experiments
Version:
Experimental React components for building experiences for Microsoft 365.
14 lines • 447 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPreviousSuggestionIndex = function (suggestions, currentIndex) {
if (suggestions && suggestions.length) {
if (currentIndex > 0) {
return currentIndex - 1;
}
else if (currentIndex === 0) {
return suggestions.length - 1;
}
}
return -1;
};
//# sourceMappingURL=getPreviousSuggestionIndex.js.map