const activeIndexes = new Set();
newIndexes.forEach((index) => {
cellToVertex(index, { 'active': true });
activeIndexes.add(index);
});
const compactedIndexes = compactCells(Array.from(activeIndexes));
console.log('compactedIndexes', compactedIndexes);
// Find nearby indexes
const centerIndex = "8f60260b2ab5315";
const k = 1;
const nearbyIndexes = gridDisk(centerIndex, k);
const activeIndexes1 = new Set();
nearbyIndexes.forEach((index) => {
if (getResolution(index) === getResolution(centerIndex) && getBaseCellNumber(index, 'active')) {
activeIndexes1.add(index);
}
});```
console.log('nearby indexes', Array.from(activeIndexes1));
I need set const newIndexes = \["8f60260b2ab5302", '8f60260b6873791', '8f60260b2364384','8f6026c99a5a812',"8f60b521ab9b471"\];
And searching with nearby active indexes using centerIndex = "8f60260b2ab5315". It need to check newIndexes.`