結果 : get the current array index in javascript foreach ()