Skip to content

Instantly share code, notes, and snippets.

@danic85
Created February 26, 2018 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danic85/8248dd56106c3137949fa5ccfb29d79c to your computer and use it in GitHub Desktop.
Save danic85/8248dd56106c3137949fa5ccfb29d79c to your computer and use it in GitHub Desktop.
Convert a proxy to a readable object
outputProxy : function(record) {
var obj = {};
for(var propt in record) {
obj[propt] = record[propt];
if (typeof(record[propt]) == 'object') {
obj[propt] = this.outputProxy(record[propt]);
}
}
return obj;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment