UNPKG

chimpy

Version:

Develop acceptance tests & end-to-end tests with realtime feedback.

14 lines (11 loc) 261 B
"use strict"; module.exports = { isFalsey: isFalsey, isTruthy: isTruthy }; function isFalsey(variable) { return !variable || variable === 'false' || variable === 'null' || variable === ''; } function isTruthy(variable) { return !isFalsey(variable); }