flatMap() might be useful. In most cases I rather feel I would chain map() followed by flat() to keep the logic in map separate from flattening the array.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How are you feeling about the optional chaining and null coalescing operator.
I am super excited about those moving up in stages as well. :)
with flat, I am looking forward to .flatMap() as well.
flatMap()
might be useful. In most cases I rather feel I would chainmap()
followed byflat()
to keep the logic inmap
separate from flattening the array.