for(let [index,item] of new Map( yyBlockList.map( ( item, i ) => [ i, item ] ) )){ console.log(item); console.log(index); }