I have the following code
if (this.myForm.value['isDefault'] === true)
Where isDefault is a checkbox FormControl. Now if the checkbox is checked I am expecting this.myForm.value['isDefault'] will result in true. When I alert this, it indeed shows true but this comparison does not result in true.
console.log(typeof this.myForm.value['isDefault'])? And show the output