如何在 Cloud Function 的导出函数中调用子函数

How to call sub function within export function in a Cloud Function

我有一项功能 getUsers,我正在将其部署到我的云功能上。

index.js

exports.getUsers = functions.https.onRequest((request, response) => {
   // I want to call computeData function here
});

function computeData(user, x, algo) {

}

我不想导出 computeData 函数,只是想在导出函数中调用它。 Cloud Functions for Firebase 有什么方法?

就像在任何其他函数中一样调用它:

exports.getUsers = functions.https.onRequest((request, response) => {
    computeData(...)
})