Created
February 28, 2019 13:02
-
-
Save alieslamifard/de0369ac521fd4e41c80366d7afb78ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const foo = { bar: [ { hey : "you" } ] }; | |
if ( foo && foo.bar && foo.bar.length ) { | |
return foo.bar.map( items => <Component data={items.hey} /> ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment