Mercurial > browser-couch
comparison tutorial.html @ 93:af36b00306d0
Typo fix
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Tue, 21 Apr 2009 10:11:07 -0700 |
parents | 093e51c6aa3c |
children | 86158b61b732 |
comparison
equal
deleted
inserted
replaced
92:3dcb8c8a7838 | 93:af36b00306d0 |
---|---|
142 | 142 |
143 <p>The <tt>reduce()</tt> function is called for each unique key, and | 143 <p>The <tt>reduce()</tt> function is called for each unique key, and |
144 its return value is the value for its key in the final view.</p> | 144 its return value is the value for its key in the final view.</p> |
145 | 145 |
146 <p>Once you've got a view, you can use the view's <tt>findRow()</tt> | 146 <p>Once you've got a view, you can use the view's <tt>findRow()</tt> |
147 method to find the first row whose key matchest (or is closest to) the | 147 method to find the first row whose key matches (or is closest to) the |
148 one you provide. For example:</p> | 148 one you provide. For example:</p> |
149 | 149 |
150 <div class="example-code"> | 150 <div class="example-code"> |
151 function findRows(result) { | 151 function findRows(result) { |
152 var rowIndex = result.findRow('Thunder'); | 152 var rowIndex = result.findRow('Thunder'); |