Unions

Introduction

Sometimes you may want to proccess several properties with different functions and merge them. You can accomplish this with the union keyword U.

The outputs of the functions preceeded by the union keyword are merged into one by different means:

  • Arrays -> concat
  • Object -> spread
  • Function -> not supported
  • Number -> add
  • Bigint -> add
  • boolean -> ||
Warning
This is an experimental feature

Example with arrays

[1, 2, 3, 4, 5, 6]

Example with objects

{ a: 3 }