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 {
|
get idLastDigit (this: typeof scoreinfo): number {
|
||||||
const idStr = (+this.id).toString(RADIX)
|
return (+this.id) % RADIX
|
||||||
return parseInt(idStr[idStr.length - 1], RADIX)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
get title (this: typeof scoreinfo): string {
|
get title (this: typeof scoreinfo): string {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue