Selects the first value if it is non-zero, and the second value otherwise.
Usage | Returns |
---|---|
Number.firstNonZero(right) | Number |
Argument | Type | Details |
---|---|---|
this: left | Number | The left-hand value. |
right | Number | The right-hand value. |
Examples
JavaScript
// Your example goes here!
Python
# Your example goes here!