UNPKG

@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) 312 B
'use strict' module.exports = function isNullOperator (inputValue, comparisonValue, candidateStateName, cache) { const isNull = inputValue === null if (isNull && comparisonValue === true) { return candidateStateName } if (!isNull && comparisonValue !== true) { return candidateStateName } }