All Questions
1 question
42
votes
9
answers
7k
views
Is a JS Boolean having custom properties a bad practice?
In JS you can return a Boolean having custom properties. Eg. when Modernizr tests for video support it returns true or false but the returned Boolean (Bool is first class object in JS) has properties ...