Skip to content

Instantly share code, notes, and snippets.

@samcorcos
Last active November 8, 2016 23:31
Show Gist options
  • Save samcorcos/e89e6e0b05f2d83d536ffd2e61af9eec to your computer and use it in GitHub Desktop.
Save samcorcos/e89e6e0b05f2d83d536ffd2e61af9eec to your computer and use it in GitHub Desktop.
simple structure
const makesModels = {
"Acura": {
"ILX": {
"years": [
2016,
2015,
2014,
2013,
2012
]
},
"FTP": {
"years": [
2016,
2015,
2014
]
},
"XYZ": {
"years": [
2016,
2015
]
}
}
}
const run = year => {
}
/*
Function run/1 takes in year, returns all models from that year
*/
run(2014) // => should return ["ILX", "FTP"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment