Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function n(data){
o={}
_.keys(data).forEach(function(key){
o[key]=m(data[key])
})
}
function m(data){
t = {}
data.forEach(function(d){
if (_.isObject(d))
t[_.keys(d)[0]]=d[_.keys(d)[0]]
})
return t
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.