vanillajs-helpers

Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS

View the Project on GitHub Tokimon/vanillajs-helpers

vanillajs-helpers > “isBoolean”

External module: “isBoolean”

Index

Functions


Functions

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