diff options
Diffstat (limited to 'src/data/composite/control-flow/inputAvailabilityCheckMode.js')
-rw-r--r-- | src/data/composite/control-flow/inputAvailabilityCheckMode.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/data/composite/control-flow/inputAvailabilityCheckMode.js b/src/data/composite/control-flow/inputAvailabilityCheckMode.js new file mode 100644 index 00000000..d74a1149 --- /dev/null +++ b/src/data/composite/control-flow/inputAvailabilityCheckMode.js @@ -0,0 +1,9 @@ +import {input} from '#composite'; +import {is} from '#validators'; + +export default function inputAvailabilityCheckMode() { + return input({ + validate: is('null', 'empty', 'falsy'), + defaultValue: 'null', + }); +} |