Surpress log

This commit is contained in:
Sakura Knoll
2022-03-21 19:28:59 +09:00 Unverified
parent d9e2a7b3fa
commit 091bafc084
+24 -24
View File
@@ -38,30 +38,30 @@ const enemyIdList = [
// }, []), // }, []),
] ]
console.log( // console.log(
times((i) => i + 65, 26) // times((i) => i + 65, 26)
.reduce<[number, number][]>((array, first) => { // .reduce<[number, number][]>((array, first) => {
array.push( // array.push(
...times((i) => i + 65, 26).map<[number, number]>((second) => [ // ...times((i) => i + 65, 26).map<[number, number]>((second) => [
first, // first,
second, // second,
]) // ])
) // )
return array // return array
}, []) // }, [])
.map(([first, second]) => { // .map(([first, second]) => {
return String.fromCharCode(first) + String.fromCharCode(second) // return String.fromCharCode(first) + String.fromCharCode(second)
}) // })
.reduce<string[]>((idList, prefix) => { // .reduce<string[]>((idList, prefix) => {
idList.push( // idList.push(
...times((i) => i + 10, 1).map((i) => { // ...times((i) => i + 10, 1).map((i) => {
const stringified = i.toString() // const stringified = i.toString()
return `${prefix}_${'0'.repeat(3 - stringified.length) + stringified}` // return `${prefix}_${'0'.repeat(3 - stringified.length) + stringified}`
}) // })
) // )
return idList // return idList
}, []) // }, [])
) // )
// console.log( // console.log(
// times(i => i + 65, 26).map(code => { // times(i => i + 65, 26).map(code => {