@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) • 331 B
JavaScript
module.exports = function isStringOperator (inputValue, comparisonValue, candidateStateName, cache) {
const isString = typeof inputValue === 'string'
if (isString && comparisonValue === true) {
return candidateStateName
}
if (!isString && comparisonValue !== true) {
return candidateStateName
}
}