Open antonmedv opened 3 weeks ago
flatten([["a", "b"], [1, 2, [3, 4]]]) == ["a", "b", 1, 2, 3, 4] or ["a", "b", 1, 2, [3, 4]] ?
["a", "b", 1, 2, 3, 4]
Lets make it to all nested arrays.
Would be nice if the function also supports maps, e.g. just like VRL https://vector.dev/docs/reference/vrl/functions/#flatten
Add flatten builtin.