UNPKG

@wmfs/asl-choice-processor

Version:

For determining the next state given an Amazon States Language 'Choices' definition and a set of values.

10 lines (8 loc) 243 B
'use strict' module.exports = function stringLessThanEqualsOperator (inputValue, comparisonValue, candidateStateName, cache) { let nextState if (inputValue <= comparisonValue) { nextState = candidateStateName } return nextState }