@badeball/cypress-cucumber-preprocessor
Version:
[](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml) [ • 750 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isString = isString;
exports.isBoolean = isBoolean;
exports.isFalse = isFalse;
exports.isStringOrFalse = isStringOrFalse;
exports.isStringOrStringArray = isStringOrStringArray;
exports.notNull = notNull;
function isString(value) {
return typeof value === "string";
}
function isBoolean(value) {
return typeof value === "boolean";
}
function isFalse(value) {
return value === false;
}
function isStringOrFalse(value) {
return isString(value) || isFalse(value);
}
function isStringOrStringArray(value) {
return (typeof value === "string" || (Array.isArray(value) && value.every(isString)));
}
function notNull(value) {
return value != null;
}