Created
November 1, 2018 22:16
-
-
Save pkosiec/e406fbea2b7b2870d903a2528f15d8a1 to your computer and use it in GitHub Desktop.
Example import data in JS
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 names = ["John", "Joanne", "Bob", "Will", "Chris", "Mike", "Anna", "Jack", "Peter", "Paul"]; | |
module.exports = names.map(name => ({ | |
name, | |
email: "[email protected]", | |
avatar: "https://placekitten.com/300/300", | |
})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment