Skip to main content

isBoolean

Checks if value is classified as a boolean primitive or object.

API

function isBoolean(value: unknown): value is boolean;

Usage

import { isBoolean } from '@feedzai/js-utilities';

isBoolean(false)
// true

isBoolean(null)
// false