Skip to content

Instantly share code, notes, and snippets.

@doowb
Last active August 29, 2015 13:58
Show Gist options
  • Select an option

  • Save doowb/10197461 to your computer and use it in GitHub Desktop.

Select an option

Save doowb/10197461 to your computer and use it in GitHub Desktop.
nested data
var data = [
{
'Sellside.foo': ['path/to/foo-data.json'],
'Sellside.bar': ['path/to/bar-data.json']
}
];
var results = {
Sellside: {
foo: { /* foo-data.json */ },
bar: { /* bar-data.json */ }
}
};
var data = [
{
Sellside: [
{
foo: ['path/to/foo-data.json']
},
{
bar: ['path/to/bar-data.json']
}
]
}
];
var results = {
Sellside: {
foo: { /* foo-data.json */ },
bar: { /* bar-data.json */ }
}
};
@jonschlinkert
Copy link

@doowb, is 8 what you would expect?

@doowb
Copy link
Author

doowb commented Apr 9, 2014

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment