How to add a function call to findTeams();

How do I add a function call to findTeams();

How would that be written?

Like this?

findTeams = function(){};

please be more specific so users don’t have to guess and then reply
you want to make a function that will call your another function , if i am not wrong in guessing then you can achive this using following way

first define your function you want to call , then make another function so that will call your function .

eg :

  function hello(){
return console.log('hello i am hello function');
}

now i want to call my hello function using another function then
eg :

function callHello(){
 return hello();
}
callHello();

output in console hello i am hello function

if this is not answer of your question then be more specific.
thank you!