methods/util/verifyAWS.js
// verifies that the function is a valid function
verifies that the function is a valid function
verifies that the function is a valid function
async function verifyFunction(funcName) {
  const functionObj = await lambda.getFuncList();
  const functions = Object.keys(functionObj);
  const result = functions.includes(funcName);
  result ? console.log('Verified function name') : console.log(fail('Cannot find function name.'));
  return result;
}
async function verifyFunction ( funcName ) { const functionObj = await lambda . getFuncList ( ) ; const functions = Object . keys ( functionObj ) ; const result = functions . includes ( funcName ) ; result ? console . log ( 'Verified function name' ) : console . log ( fail ( 'Cannot find function name.' ) ) ; return result ; }
verifies that the function is a valid function
verifies that the function is a valid function