Repository URL to install this package:
|
Version:
6.0.4 ▾
|
/**
* @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,
// }