Files
NapCatQQ/.pnpm-store/v3/files/23/90b1acc116ff6ba17449fef831b0437927e8f625ae72074b4723b8e5ce65e6123059382ceabde33b000e21dee18020ecf9a81645c54c479ead353dcef129b0
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
324 B
Plaintext

import identity from './identity.js';
/**
* Casts `value` to `identity` if it's not a function.
*
* @private
* @param {*} value The value to inspect.
* @returns {Function} Returns cast function.
*/
function castFunction(value) {
return typeof value == 'function' ? value : identity;
}
export default castFunction;