import { _bind } from"../../utility/function/_bind";exporttypeFunctionKeyType=keyoftypeof Function;describe('_bind', () => {test('_bind should return `function` which can change the `this`', () => {constorigin= { name:'ddzy is a fe programmer', };constexpected= { name:'ddzy is a fe programmer', arg0:20, arg1:30, };constreceived= {printName(...args:any[]) {constname=this['name'askeyoftypeof received];constarg0= args[0];constarg1= args[1];expect({ name, arg0, arg1 }).toEqual(expected); }, };Function.prototype['_bind'asFunctionKeyType] = _bind;const_bindedFunc=received.printName['_bind'asFunctionKeyType](origin);_bindedFunc([20,30]); })})