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

16 lines
382 B
Plaintext

/**
* Creates a unary function that invokes `func` with its argument transformed.
*
* @private
* @param {Function} func The function to wrap.
* @param {Function} transform The argument transform.
* @returns {Function} Returns the new function.
*/
function overArg(func, transform) {
return function(arg) {
return func(transform(arg));
};
}
module.exports = overArg;