Checks if the input is a boolean.
检查输入是否为布尔值。
The value to check. 要检查的值
True if the value is a boolean, false otherwise. 如果值为布尔值则返回 true,否则返回 false
isBoolean(true) // => trueisBoolean(1) // => false Copy
isBoolean(true) // => trueisBoolean(1) // => false
Checks if the input is a boolean.
检查输入是否为布尔值。