refactor: idLastDigit
This commit is contained in:
parent
f68a2ddada
commit
7f6a1e07e2
1 changed files with 1 additions and 2 deletions
|
@ -34,8 +34,7 @@ export const scoreinfo = {
|
|||
},
|
||||
|
||||
get idLastDigit (this: typeof scoreinfo): number {
|
||||
const idStr = (+this.id).toString(RADIX)
|
||||
return parseInt(idStr[idStr.length - 1], RADIX)
|
||||
return (+this.id) % RADIX
|
||||
},
|
||||
|
||||
get title (this: typeof scoreinfo): string {
|
||||
|
|
Loading…
Reference in a new issue