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.
flatMap()might be useful. In most cases I rather feel I would chainmap()followed byflat()to keep the logic inmapseparate from flattening the array.