Closed hirasso closed 3 months ago
 12 passed
 12 tests across 1 suite
Â
 d973886
Yeah, been looking forward to this 🥯 Calling it if
makes more sense to me than predicate
, in terms of readability. Loose boolean matching is probably also fine -- as long as ommitting the if
function is equivalent to () => true
.
as long as ommitting the if function is equivalent to
() => true
Yes, it is. ok great!
Description
It's time! For a current project I finally need
rule.if
. This is a rewrite of #47Questions
rule.if
orrule.predicate
? Currently, the property isif
, the type ifPredicate
.rule.if
will prevent a rule from being matched if it returns a falsy value (if (!this.if)...
). Would it make sense to make that more strict? (if (this.if === false)
)?Drive-By
Checks
master
branchnpm run lint
)npm run test
)