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.
These changes add an
array
type coercion bloblang method similar to thebytes
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 likethis.with("name").values().flatten()
to ensure an array returned.Feedback welcome