Skip to content

Instantly share code, notes, and snippets.

@omarqureshi
Created October 22, 2013 11:19
Show Gist options
  • Select an option

  • Save omarqureshi/7098908 to your computer and use it in GitHub Desktop.

Select an option

Save omarqureshi/7098908 to your computer and use it in GitHub Desktop.
function anonymous(s, k) {
var l, fn, p;
if(s === null || s === undefined) return s;
l=s;
s=((k&&k.hasOwnProperty("user"))?k:s)["user"];
if (s && s.then) {
if (!("$$v" in s)) {
p=s;
p.$$v = undefined;
p.then(function(v) {p.$$v=v;});
}
s=s.$$v
}
if(s === null || s === undefined) return s;
l=s;
s=s["last_name"];
if (s && s.then) {
if (!("$$v" in s)) {
p=s;
p.$$v = undefined;
p.then(function(v) {p.$$v=v;});
}
s=s.$$v
}
return s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment