Control functions - misonou/waterpipe GitHub Wiki
Concatenates the piped value and the following evaluated values into an array. Array elements are flatten down. In addition, undefined and null elements are removed from the result array.
{{value}} ➜ 1
{{array}} ➜ [2,3,4]
{{value | value}} ➜ [1,1]
{{value | array}} ➜ [1,2,3,4]
{{value | undefined}} ➜ [1]
Performs short-circuited logical AND and OR operation. The two logical pipe functions, like any other pipe functions, no precedence over the other and are evaluated from left to right.
Nested logical operations can be done by function arguments.
{{value}} ➜ 1
{{array}} ➜ [2,3,4]
{{value odd && array length == 3}} ➜ true
{{value odd && [ array length == 0 || array any odd ]}} ➜ true