I do have an object which is containing some field, three of them are arrays. And I would like to map over them in one go.
Let me show how I am doing it right now:
containerNames = this.state.fileContent.xContainers.map(xContainer => <Container containerName={xContainer} />);
containerNames.push(this.state.fileContent.yContainers.map(yContainer => <Container containerName={yContainer} />));
containerNames.push(this.state.fileContent.zContainers.map(zContainer => <Container containerName={zContainer} />));
For me it does seems like it could be made differently. With one lambda?