Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / exotic   js

Repository URL to install this package:

Version: 2.0.8 

/ src / types / primitive / boolean / check / isBooleanish.ts

import isBoolean from './isBoolean'
import isTruish from './isTruish'
import isFalsish from './isFalsish'

const isBooleanLike = (
  x: any
): x is true | false | Boolean | 'false' | '"false"' | 'true' | '"true"' =>
  isBoolean(x) || isFalsish(x) || isTruish(x)

export { isBooleanLike, isBooleanLike as isBooleanish }
export default isBooleanLike