Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
386 B
13 lines
386 B
1 year ago
|
var uncurryThis = require('../internals/function-uncurry-this');
|
||
|
var aCallable = require('../internals/a-callable');
|
||
|
|
||
|
var bind = uncurryThis(uncurryThis.bind);
|
||
|
|
||
|
// optional / simple context binding
|
||
|
module.exports = function (fn, that) {
|
||
|
aCallable(fn);
|
||
|
return that === undefined ? fn : bind ? bind(fn, that) : function (/* ...args */) {
|
||
|
return fn.apply(that, arguments);
|
||
|
};
|
||
|
};
|