Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS
vanillajs-helpers > “isBoolean”
► isBoolean(obj: any
): boolean
Defined in isBoolean.ts:12
Is the given object a boolean
isBoolean(false); // -> true
isBoolean('string'); // -> false
Parameters:
Param | Type | Description |
---|---|---|
obj | any |
Object to test |
Returns: boolean