• Checks if the provided value is a boolean.

    Example

    const result1 = isBoolean(true); // true
    const result2 = isBoolean(1); // false
    const result3 = isBoolean('test'); // false

    Parameters

    • value: any

      The value to check.

    Returns value is boolean