5 ms·
You can force cast a boolean by doing if(!!value == true) {}, but at that point you might as well just say if(value)
by pythonaut_16 8y ago
You can force cast a boolean by doing if(!!value == true) {}, but at that point you might as well just say if(value)