I don’t often link to roundups, but this is a pretty fantastic set of websites for both design and development inspiration.
Beware of date camparison in javascript!
You can’t compare dt1 == dt2 cause this’ll check if it the same obj, not check value.
Only way is to dt1.getTime()==dt2.getTime()
When parsing boolean in nodejs e.g. when post request to the server.
I used to do this:
var mybool = Boolean(req.body.mybool);
This is wrong. The way to get Boolean from string is:
var mybool = (‘true’===req.body.mybool)