download
raw
444 Bytes
'use strict';
/**
* Create a bound version of a function with a specified `this` context
*
* @param {Function} fn - The function to bind
* @param {*} thisArg - The value to be passed as the `this` parameter
* @returns {Function} A new function that will call the original function with the specified `this` context
*/
export default function bind(fn, thisArg) {
return function wrap() {
return fn.apply(thisArg, arguments);
};
}

Xet Storage Details

Size:
444 Bytes
·
Xet hash:
16d56e030db009cb3bbb4cf3fc2f469d4a607120d01f54945f437391277ef15c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.