I understand that an empty string is falsy in javascript and a not-empty string is truthy in javascript.
However, why is 'false'
truthy in javascript, is there anything explicit in the specification? Is it a performance issue or are there situations where you would want the string 'false'
to represent true
?