Skip to content

Instantly share code, notes, and snippets.

@JalfResi
Created June 25, 2015 15:10
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 JalfResi/54aecca6a64d76081f1a to your computer and use it in GitHub Desktop.
Save JalfResi/54aecca6a64d76081f1a to your computer and use it in GitHub Desktop.
Otto JS Plugin - The JavaScript
var getKeys = function(obj){
var keys = [];
for(var key in obj){
keys.push(key);
}
return keys;
}
function checkRequest(r) {
console.log(r);
r.SetName("Ben");
console.log(r.GetName());
console.log(getKeys(r));
console.log(r.Name);
console.log(r.Age());
console.log(r.AddToAge(10));
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment