]> git.ardis.lu - csvio/commitdiff
Specify "transformation function" instead of "logic function" to be clear
authorArdis Lu <ardisglu@gmail.com>
Thu, 9 Jan 2025 05:16:36 +0000 (21:16 -0800)
committerArdis Lu <ardisglu@gmail.com>
Thu, 9 Jan 2025 05:16:36 +0000 (21:16 -0800)
examples/ex1.js
examples/ex2.js

index 426671d05281166e1fbcc5e4252550babf000103..77b63e9b2c27d2f3ace686995c0139855ef0173e 100644 (file)
@@ -3,7 +3,7 @@
 // Minimal example of a user-defined function to transform a CSV.
 // 
 // Notes:
-// - The header row (first row) of the input CSV is not passed to the logic function, it skips through to the output CSV.
+// - The header row (first row) of the input CSV is not passed to the transformation function, it skips through to the output CSV.
 // - The input to the transformation function is already deserialized to an array, however **each field in the array is a string**.
 // - Each call to the transformation function passes 1 row of the input CSV.
 // - The expected output of the transformation function is another array representing 1 row of the output CSV.
index 247109239232bbc15fc661a05e53676a7064b282..907f4828b803d3969c08f60f377063c730ad0da8 100644 (file)
@@ -3,7 +3,7 @@
 // Set `includeHeaders: true` to manually handle the header row (first row).
 // 
 // Notes:
-// - The header row is assumed to be the first row in the input CSV, and by default it goes directly to the output (skipping the user-provided logic function).
+// - The header row is assumed to be the first row in the input CSV, and by default it goes directly to the output (skipping the user-provided transformation function).
 // - If your input CSV does not have a header row, set `includeHeaders: true` and process the header row (first row) normally.
 // - Otherwise, you will need distinct logic to handle the header row vs. data rows. A simple boolean variable is a good way to switch between this logic. 
 
This page took 0.036669 seconds and 4 git commands to generate.