Small refactoring

This commit is contained in:
barsdeveloper
2021-11-23 21:16:33 +01:00
parent c774886a2e
commit 07afb4bcb9
4 changed files with 120 additions and 110 deletions

View File

@@ -13,7 +13,7 @@ export default class GuidEntity extends Entity {
}
let guid = ""
values.forEach(n => {
guid += ('00000000' + n.toString(16).toUpperCase()).slice(-8)
guid += ("0".repeat(8) + n.toString(16).toUpperCase()).slice(-8)
})
return new GuidEntity({ valud: guid })
}