ENV PRESEToption, and typing “firefox 4.0” into the Browsers field.
log()function will log output to the CouchDB log file or stream. You can log strings, objects, and arrays directly, without first converting to JSON. Use this in conjunction with a local CouchDB instance for best results.
Be sure to guard all document accesses to avoid exceptions when fields or subfields are missing:
if (doc && doc.myarray && doc.myarray.length)...