2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

docs: add comprehensive JSDoc documentation to bind helper function (#7119)

- Add complete JSDoc block with parameter descriptions
  - Include return type and description
  - Improve code documentation for better developer experience
  - Follow established JSDoc patterns in the codebase
This commit is contained in:
Abhishek3880
2025-10-09 13:13:07 +05:30
committed by GitHub
parent f4970f35b8
commit 34ed58167f
+7
View File
@@ -1,5 +1,12 @@
'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);