I have one component which is going to display Array of String. The code looks like this:
React.createClass({ render() { this.props
This should return a flat array. Handle s case with non iterable first object by providing an initial empty array and filters the not needed first comma from the outcome
[{}, 'b', 'c'].reduce((prev, curr) => [...prev, ', ', curr], []).splice(1) // => [{}, 'b', 'c']