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