Files
NapCatQQ/.pnpm-store/v3/files/8a/d2b00e0239ad00affcaf4120f5867c379526356e972085adc819cd32871ddc62ed0d461241e8d12bbff738afd6d6dc5478ecd65b9cbcbddc1f04073b9b921e
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
444 B
Plaintext

'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);
};
}