SOURCE

for(let [index,item] of new Map( yyBlockList.map( ( item, i ) => [ i, item ] ) )){
  console.log(item);
  console.log(index);
}
console 命令行工具 X clear

                    
>
console