| var restArguments = require('./restArguments.js'); | |
| var isFunction = require('./isFunction.js'); | |
| var _executeBound = require('./_executeBound.js'); | |
| // Create a function bound to a given object (assigning `this`, and arguments, | |
| // optionally). | |
| var bind = restArguments(function(func, context, args) { | |
| if (!isFunction(func)) throw new TypeError('Bind must be called on a function'); | |
| var bound = restArguments(function(callArgs) { | |
| return _executeBound(func, bound, context, this, args.concat(callArgs)); | |
| }); | |
| return bound; | |
| }); | |
| module.exports = bind; | |
Xet Storage Details
- Size:
- 559 Bytes
- Xet hash:
- dc2651a53b3c6dd1eb3a3a8dc22d51417ced794393b7e86b4cf5ee877e4abe4f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.