New keys for object, refactoring.

This commit is contained in:
barsdeveloper
2021-12-05 20:49:07 +01:00
parent 07afb4bcb9
commit 76ae9ed3c0
26 changed files with 165 additions and 142 deletions

View File

@@ -10,9 +10,13 @@ export default class IntegerEntity extends Entity {
return IntegerEntity.attributes
}
constructor(options = {}) {
constructor(options = { value: 0 }) {
options.value = Math.round(options.value)
super(options)
this.value = Math.round(value)
}
valueOf() {
return this.value
}
toString() {