- K4周日1900班第12课《花朵随心画》课评(梁境城、钟嘉逸、王睿意补课) - AICODE03/CSP03各班级第12课课评及班级总结 - 更新多班级学生画像 - 课评生成技能优化
15 lines
444 B
JavaScript
15 lines
444 B
JavaScript
'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);
|
|
};
|
|
}
|