riku
2026-01-16 1f9e43b7bbb848c7ee2aaa89ffece17002b2c915
1
2
3
4
5
6
7
function shouldLoadImage(index, currentIndex, loadedIndexes) {
  return Math.abs(index - currentIndex) <= 1 || (loadedIndexes && loadedIndexes.indexOf(index) !== -1);
}
 
module.exports = {
  shouldLoadImage: shouldLoadImage,
};