connect icon indicating copy to clipboard operation
connect copied to clipboard

Add "array" bloblang method

Open gramian opened this issue 1 year ago • 0 comments

These changes add an array type coercion bloblang method similar to the bytes method: If the caller is already of type array the the input is returned. If it is any other type the input is wrapped into a one-element array. Such a method helps to avoid constructs like this.with("name").values().flatten() to ensure an array returned.

  • [x] added passing tests
  • [x] format passing style
  • [x] added docs entry

Feedback welcome

gramian avatar Apr 23 '24 20:04 gramian