Skip to content

Instantly share code, notes, and snippets.

@johnathan-sewell
Created April 13, 2018 12:17
Show Gist options
  • Save johnathan-sewell/9f7817af7f2623346cf1cad4237aedf9 to your computer and use it in GitHub Desktop.
Save johnathan-sewell/9f7817af7f2623346cf1cad4237aedf9 to your computer and use it in GitHub Desktop.
// nice technique for generating arrays for testing
const vintages = Array.from({ length: 15 }, (value, index) => ({
id: index,
year: 1998 + index,
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment