Fixes and Utility test added

This commit is contained in:
barsdeveloper
2023-01-04 15:53:51 +01:00
parent 6230da391f
commit f59217ffd9
9 changed files with 277 additions and 81 deletions

View File

@@ -58,8 +58,8 @@ export default class ComplexEntity extends IEntity {
},
papa: () => new SimpleObject(12, 13),
quebec: {
value: 0, // will assign 1 according to filter
filter: v => Utility.clamp(v, 1, 10),
value: 0, // will assign undefined because it does not satisfy the predicate
predicate: v => v >= 1 && v <= 10,
},
}