Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
chain-able-deps / src / regexp / matchBooleanIsh.ts
Size: Mime:
/**
 * @todo this one has problems
 */
// import newRegExp from '../construct/regexp'
// import toTestable from '../cast/toTestable'
// import {isTrue, isFalse} from '../is'
// import or from '../conditional/or'
// const quote = `("|')?`
// const begin = '^'
// const end = '$'
// // @NOTE we do not want to escape this - thus not using toRegExp
// const matchTrue = newRegExp(begin + quote + '(true)' + quote + end)
// const matchFalse = newRegExp(begin + quote + '(false)' + quote + end)
// const matchesTrue = toTestable(matchTrue)
// const matchesFalse = toTestable(matchFalse)
// const matchTrueOrFalse = or(matchesTrue, matchesFalse)
// const isTruish = or(isTrue, matchesTrue)
// const isFalsish = or(isFalse, matchesFalse)
// export {
//   matchTrue,
//   matchTrueOrFalse,
//   isTruish,
//   isFalsish,
//   matchesTrue,
//   matchesFalse,
// }