ctrl+k
Enter a search term above to see results...
Enter a search term above to see results...
Numeric helpers provide utilities for working with numbers in templates.
Returns the index plus one, useful for human-readable numbering.
Name | Type | Description |
---|---|---|
a | number | The index value |
number
- The index plus one.
Adds a plural suffix if the value is not 1.
Name | Type | Default | Description |
---|---|---|---|
value | number | The count to check | |
plural | string | ’s’ | The plural suffix to add |
string
- The plural suffix if the value is not 1, otherwise an empty string.