connect
connect copied to clipboard
Add "array" bloblang method
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