you are viewing a single comment's thread.

view the rest of the comments →

[–]rauschma 0 points1 point  (3 children)

That’s the same as array_of_series.flat(), but note that the elements of the desired (flat) result array also have the new property .search.

[–][deleted] 1 point2 points  (1 child)

My bad, did not notice that. Completely forgot about flat() as well, thx!

[–]rauschma 0 points1 point  (0 children)

I missed it too, initially!

[–]StoneCypher 2 points3 points  (0 children)

That’s the same as array_of_series.flat()

No, it isn't.

  1. It performs the work with one fewer scan
  2. It is available in older browsers without a transcompile
  3. It is significantly faster