We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1826d0b commit ca4fd1eCopy full SHA for ca4fd1e
1 file changed
packages/type/src/is/lib/is-boolean.func.ts
@@ -11,7 +11,7 @@ import { ResultCallback } from '../../type/result-callback.type';
11
* @param value Any `value` to check.
12
* @param callback `ResultCallback` function to handle result before returns.
13
* @callback `resultCallback`.
14
- * @returns A `boolean` indicating whether or not the `value` is a `boolean`.
+ * @returns A `boolean` indicating whether or not the `value` is a `boolean` type or `Boolean` object.
15
*/
16
export const isBoolean: IsBoolean = (value: any, callback: ResultCallback = resultCallback): value is boolean =>
17
callback(typeOf(value) === 'boolean' && (isBooleanType(value) || isBooleanObject(value)), value);
0 commit comments