refactor: idLastDigit

This commit is contained in:
Xmader 2020-11-19 13:22:17 -05:00
parent f68a2ddada
commit 7f6a1e07e2
No known key found for this signature in database
GPG key ID: A20B97FB9EB730E4

View file

@ -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 {