INNER CODE UNIT · JavaScript

getStrategy

serverless-operations/serverless-step-functions · lib/deploy/stepFunctions/notificationStrategies/index.js:19

function getStrategy(targetObj) {
  for (const [type, strategy] of registry) {
    if (Object.hasOwn(targetObj, type)) {
      return { type, strategy };
    }
  }
  return null;
}

module.exports = { registry, getStrategy };

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…