Stay organized with collections
Save and categorize content based on your preferences.
Separates aggregate inputs (Arrays, Lists, or Dictionaries) into individual items that are then each passed to the specified reducer. When used on dictionaries, the dictionary keys are ignored. Non-aggregated inputs (e.g., Numbers or Strings) are passed to the underlying reducer directly.
Usage
Returns
Reducer.disaggregate(axis)
Reducer
Argument
Type
Details
this: reducer
Reducer
The reducer for which to disaggregate inputs.
axis
Integer, default: null
If specified, indicates an array axis along which to disaggregate. If not specified, arrays are completely disaggregated. Ignored for non-array types.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-19 UTC."],[[["Disaggregates aggregate data structures like arrays, lists, and dictionaries into individual elements for processing by the specified reducer, ignoring dictionary keys."],["Non-aggregated inputs such as numbers and strings bypass disaggregation and are directly processed by the reducer."],["Offers an optional `axis` parameter to specify the dimension along which to disaggregate arrays, enabling partial disaggregation."],["Returns a new Reducer instance incorporating the disaggregation behavior."]]],[]]