Skip to content

Instantly share code, notes, and snippets.

View davebalmer's full-sized avatar

Dave Balmer davebalmer

  • Phoenix, AZ
  • 11:23 (UTC -12:00)
  • X @balmer
View GitHub Profile
@kaaes
kaaes / bind_ex.js
Created May 19, 2011 14:59
bind() example
function sum () {
var s = 0;
for (var i = 0, len = arguments. length; i < len; i++) {
s += arguments[i];
}
return s;
}
// execute function and
// return 6, context is window