From af34ae4178390974977101221d9f48869d5a1228 Mon Sep 17 00:00:00 2001 From: Himanshu Saini Date: Sat, 11 Sep 2021 13:48:49 +0530 Subject: [PATCH] Clarification on `json_to_sheet` header array [ci skip] Co-authored-by: Austin Turner Co-authored-by: reviewher --- docbits/82_util.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docbits/82_util.md b/docbits/82_util.md index 81ebb8d..c80c36b 100644 --- a/docbits/82_util.md +++ b/docbits/82_util.md @@ -104,12 +104,15 @@ with automatically-generated "headers" based on the keys of the objects. The default column order is determined by the first appearance of the field using `Object.keys`, but can be overridden using the options argument: -| Option Name | Default | Description | -| :---------- | :------: | :-------------------------------------------------- | -|`header` | | Use specified column order (default `Object.keys`) | -|`dateNF` | FMT 14 | Use specified date format in string output | -|`cellDates` | false | Store dates as type `d` (default is `n`) | -|`skipHeader` | false | If true, do not include header row in output | +| Option Name | Default | Description | +| :---------- | :-----: | :--------------------------------------------------- | +|`header` | | Use specified field order (default `Object.keys`) ** | +|`dateNF` | FMT 14 | Use specified date format in string output | +|`cellDates` | false | Store dates as type `d` (default is `n`) | +|`skipHeader` | false | If true, do not include header row in output | + +All fields from each row will be written. If `header` is supplied and the array +does not contain a particular field, the key will be appended to the array.
Examples (click to show)