Y
Hacker News
new
|
ask
|
show
|
jobs
by
jwlake
79 days ago
The "isPresent()" in the example gives me alot of ick. It's confusing why thats not actual javascript.
1 comments
usrbinenv
79 days ago
Yeah, I get the reaction. It's not JavaScript, it's simply a way to reference a matcher for the value, not match against literal value. You can totally use your custom matcher like this:
total: (c,v) => v > 1000
See the docs:
https://qitejs.qount25.dev/States/Field-Matchers.html
link