[Code Example] typeof variable == “boolean” Check if type is boolean
In order to check if type of variable is boolean you can use typeof variable == “boolean”. If it is object then you may use toString.call(obj) === ‘[object Boolean]’. Code…
Browsing Tag