includes to indexof
This commit is contained in:
@@ -44,7 +44,8 @@ export class TrophyRoom extends Laya.Script {
|
||||
const monthMap: Map<number, Array<any>> = new Map()
|
||||
for (var i = 0; i < infos.length; i++) {
|
||||
obj = infos[i]
|
||||
if (!years.includes(obj.year)) {
|
||||
const find = years.indexOf(obj.year)
|
||||
if (find < 0) {
|
||||
years.push(obj.year)
|
||||
}
|
||||
if (monthMap.has(obj.year) == false) {
|
||||
|
||||
Reference in New Issue
Block a user