TypeScript Data Type - Boolean
let isPresent:boolean = true;
Note that, the boolean
Boolean is different from the lower case
The upper case
Boolean is an object type whereas lower case
boolean is a primitive type.
It is recommended to use the primitive type
TypeScript treats it like an object type.
So, instead of using upper case
function checkExistence(b: Boolean), use the lower case
function checkExistence(b: boolean) boolean type.