Browse Source

Add documentation for transform configuration option (#516)

pull/627/head
Academic Systems 7 years ago committed by Sergi Almacellas Abellana
parent
commit
1fde33639c
  1. 11
      docs.html

11
docs.html

@ -354,7 +354,8 @@ var csv = Papa.unparse({
chunk: undefined, chunk: undefined,
fastMode: undefined, fastMode: undefined,
beforeFirstChunk: undefined, beforeFirstChunk: undefined,
withCredentials: undefined withCredentials: undefined,
transform: undefined
}</code></pre> }</code></pre>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
@ -539,6 +540,14 @@ var csv = Papa.unparse({
A boolean value passed directly into XMLHttpRequest's "withCredentials" property. A boolean value passed directly into XMLHttpRequest's "withCredentials" property.
</td> </td>
</tr> </tr>
<tr>
<td>
<code>transform</code>
</td>
<td>
A function to apply on each value. The function receives the value as its first argument and the column number as its second argument. The return value of the function will replace the value it received. The transform function is applied before dynamicTyping.
</td>
</tr>
</table> </table>
</div> </div>
</div> </div>

Loading…
Cancel
Save