Closed michaelficarra closed 6 years ago
LGTM. It doesn't address possible ergonomic issues with node lists and etc. (nor does it offer a way for such objects to opt-in to flattening), but as discussed this seems fine and possibly good.
I'm not comfortable with this; I would expect it to work with array-likes. Am I forced to slice it first, unlike all other array methods?
It didn't work with array-likes before.
If it works with array-likes, it works with strings, which is kinda bad.
That is a very fair point. Sounds good, withdrawn.
/cc @domenic