From ac6f19168cc742ca12ef7ee3c2dcae607e9301a3 Mon Sep 17 00:00:00 2001 From: theLAZYmd Date: Thu, 4 Nov 2021 14:01:49 +0000 Subject: [PATCH] Updated docs to be more succint and add versioning --- docs/docs.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/docs.html b/docs/docs.html index 691ee64..43645f3 100644 --- a/docs/docs.html +++ b/docs/docs.html @@ -510,12 +510,16 @@ var csv = Papa.unparse({ transformHeader - A function to apply on each header. Requires header to be true. The function receives the header as its first argument and the index (the column number) as second. When used in conjunction with config.headerLines, the function receives a third and fourth parameter which are: + A function to apply on each header. Requires header to be true. The arguments are: + Only available starting with version 5.0. + The latter three parameters (arr, acc, j) are only available when used in conjunction with config.headerLines and from version 5.4+. @@ -524,6 +528,7 @@ var csv = Papa.unparse({ The number of rows which will be used to transform into a header, and removed from the rest of the data. Requires header to be true. Default 1. + Only available starting with veresion 5.4.