UNPKG

babel-plugin-wind

Version:

A plugin of babel to cherry-pick wind modules

18 lines (13 loc) 345 B
const _ = require('lodash') const isEmptyString = (value) => ( _.isString(value) && _.trim(value).length === 0 ) const isNilOrEmptyString = (value) => ( _.isNil(value) || isEmptyString(value) ) const isNotEmptyString = (value) => !isNilOrEmptyString(value) module.exports = { isEmptyString, isNilOrEmptyString, isNotEmptyString, }