From 34ed58167f4a6da1266eb2a5df1af1e480267966 Mon Sep 17 00:00:00 2001 From: Abhishek3880 <141427581+abhishekmaniy@users.noreply.github.com> Date: Thu, 9 Oct 2025 13:13:07 +0530 Subject: [PATCH] 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 --- lib/helpers/bind.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/helpers/bind.js b/lib/helpers/bind.js index b3aa83b..938da5c 100644 --- a/lib/helpers/bind.js +++ b/lib/helpers/bind.js @@ -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);