Skip to content

Instantly share code, notes, and snippets.

@pkosiec
Created November 1, 2018 22:16
Show Gist options
  • Save pkosiec/e406fbea2b7b2870d903a2528f15d8a1 to your computer and use it in GitHub Desktop.
Save pkosiec/e406fbea2b7b2870d903a2528f15d8a1 to your computer and use it in GitHub Desktop.
Example import data in JS
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