Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Latest commit

 

History

History

isBoolean

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

isBoolean(value)

Returns: boolean

Checks whether value is a boolean.

Example

import { isBoolean } from '@guardian/libs';

isBoolean(''); // false
isBoolean(true); // true