This commit is contained in:
Brent Guffens 2018-01-17 21:14:35 +01:00 committed by GitHub
parent 6109448768
commit e055c4c845
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@ The OR `"||"` operator does the following:
- Evaluate operands from left to right. - Evaluate operands from left to right.
- For each operand, convert it to boolean. If the result is `true`, then stop and return the original value of that operand. - For each operand, convert it to boolean. If the result is `true`, then stop and return the original value of that operand.
- If all other operands have been assessed (i.e. all were `falsy`), return the last operand. - If all other operands have been assessed (i.e. all were `false`), return the last operand.
A value is returned in its original form, without the conversion. A value is returned in its original form, without the conversion.