Apply your JS skills to key Mozilla projects as an MDN Fellow! http://mzl.la/MDNFellowship

mozilla

Compare Revisions

Function.prototype.bind()

Change Revisions

Revision 5057:

Revision 5057 by XP1 on

Revision 5058:

Revision 5058 by slippyd on

Title:
bind
bind
Slug:
JavaScript/Reference/Global_Objects/Function/bind
JavaScript/Reference/Global_Objects/Function/bind
Tags:
javascript, Functions, "JavaScript 1.8.5", ECMAScript5
javascript, Functions, "JavaScript 1.8.5", ECMAScript5
Content:

Revision 5057
Revision 5058
tt228var unboundSlice = Array.prototype.slice; // same as "slice" in t
 >he previous example
228var slice = Function.prototype.call.bind(Array.prototype.slice);229var slice = Function.prototype.call.bind(unboundSlice);

Back to History