couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Error messages" by PaulCarey
Date Wed, 25 Feb 2009 12:28:41 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by PaulCarey:
http://wiki.apache.org/couchdb/Error_messages

The comment on the change is:
Added caveat to standard guard check

------------------------------------------------------------------------------
  }
  }}}
  
+ While the above guard will work in most cases, it's worth bearing !JavaScript's falsy set
of values in mind. Testing against a property with a value of `0` (zero), `''` (empty String),
`false` or `null` will return false. If this is undesired a guard of the form `if (doc.foo
!== undefined)` should do the trick.
+ 

Mime
View raw message