Check pivot setting information
You can check at a glance what settings the current pivot is applied to.
If the extend argument value is true, columns, rows, and values are imported in the form of an object array. If false, columns and rows only bring the names of the relevant fields in array form.
alert(JSON.stringify(pivot.getPivotFields()));
//pivot.getPivotFields(false)