When working in JavaScript / Typescript, often times occur when i need to check a length exists or if a value is true or false.
The main question is, is there any difference in performance or behaviour between checking as follows...
const data = ['hello', 'good', 'day'];
(data.length) // true
(data.length > 0) // also true
much like
const booleanValue = false;
(!booleanValue) // true
(booleanValue === false) //also true
is there a best way to do this or does it all boil down to readability.