-
-
Couldn't load subscription status.
- Fork 368
Open
Description
handlebars-helpers/lib/comparison.js
Line 328 in 5d3405f
| var isNth = utils.isNumber(a) && utils.isNumber(b) && b % a === 0; |
Is there any idea behind switching arguments (b % a) here? Documentation says that
Conditionally renders a block if the remainder is zero when a operand is divided by b.
but logic seems to be inverse. I spent plenty of time trying to figure out why my ifNth is not working as supposed, or I just don't get it.
Metadata
Metadata
Assignees
Labels
No labels