I have an array
var myarr = ["true","false","true"];
I want the above to return false of boolean type.
var myarr = ["true","true","true"];
I want the above to return true of boolean type. Can someone please help with what's the most efficient way to achieve this?.
Is it best to first convert the string to boolean in another array and then use .every()?.
Please advise. Thank You.