可以用map const _findMostType = array => { // 补全代码 const m = new Map() let max = 0 array.forEach((item) => { let type = typeof item if (!m.has(type)) { m.set(type, 1) } else { ...