Check if a value is a boolean type
Returns true if the value is a boolean type. Boxed boolean values (e.g. new Boolean(false)) are not considered booleans by this function.
boolean
new Boolean(false)
import * as _ from 'radashi' _.isBoolean(true) // => true_.isBoolean(false) // => true_.isBoolean('true') // => false_.isBoolean(1) // => false_.isBoolean(new Boolean(true)) // => false_.isBoolean(undefined) // => false_.isBoolean(null) // => false