Last active
November 8, 2016 23:31
-
-
Save samcorcos/e89e6e0b05f2d83d536ffd2e61af9eec to your computer and use it in GitHub Desktop.
simple structure
This file contains hidden or 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 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