UNPKG

@badeball/cypress-cucumber-preprocessor

Version:

[![Build status](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml/badge.svg)](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml) [![Npm package weekly downloads](https://badgen.net/n

27 lines (26 loc) 750 B
"use strict"; 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; }