minor fixes
This commit is contained in:
parent
2289134483
commit
b782700818
5 changed files with 7 additions and 7 deletions
|
@ -121,7 +121,7 @@ This leads to some interesting usage compared to a "pure, classical, boolean-onl
|
|||
|
||||
Another feature of OR `||` operator is the so-called "short-circuit" evaluation.
|
||||
|
||||
It means that `||` processes its arguments until the first truthy value is reached, and then the value is returned immediately, without even touching the other argument.
|
||||
It means that `||` processes its arguments until the first truthy value is reached, and then the value is returned immediately, without even touching the other argument.
|
||||
|
||||
That importance of this feature becomes obvious if an operand isn't just a value, but an expression with a side effect, such as a variable assignment or a function call.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue