@wmfs/asl-choice-processor
Version:
For determining the next state given an Amazon States Language 'Choices' definition and a set of values.
14 lines (10 loc) • 337 B
JavaScript
module.exports = function isUndefinedOperator (inputValue, comparisonValue, candidateStateName, cache) {
const isUndefined = inputValue === undefined
if (isUndefined && comparisonValue === true) {
return candidateStateName
}
if (!isUndefined && comparisonValue !== true) {
return candidateStateName
}
}