I have an object containing arrays that I want to return only a select part. underscore.js is installed and expecting it to provide the tools I need.
Here is the object called makes
.
{ 2011: [ "Chevy", "Ford" ], 2012: [ "Chevy", "Ford", "GMC", "Hyundai" ] }
I've tried this and it returns an empty array.
chyear = 2012;
var makesbyyear = _.toArray(makes.chyear);