Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created August 8, 2015 06:08
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 chuck0523/6084522de9c925cc8728 to your computer and use it in GitHub Desktop.
Save chuck0523/6084522de9c925cc8728 to your computer and use it in GitHub Desktop.
var array = [3, 4];
var sum = add.apply(null, array);
console.log(sum); // 7
var statusObj = {
status: 'A-OK'
}
var status = Quo.prototype.get_status.apply(statusObj);
console.log(status); // A-OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment