Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Tworzy funkcję Reducer, która uruchamia 2 funkcje redukujące równolegle. Dane wyjściowe połączonego reduktora będą zawierać dane wyjściowe reduktora 1, a następnie dane wyjściowe reduktora 2, przy czym nazwy danych wyjściowych reduktora 2 będą miały podany ciąg znaków jako prefiks.
Jeśli sharedInputs ma wartość true, reduktory muszą mieć taką samą liczbę danych wejściowych, a reduktor połączony będzie miał taką samą liczbę danych wejściowych. Jeśli sharedInputs ma wartość false, dane wejściowe reduktora połączonego będą danymi wejściowymi reduktora1, a następnie danymi wejściowymi reduktora2.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["Creates a combined Reducer by running two reducers (reducer1 and reducer2) concurrently, with the outputs of reducer1 preceding those of reducer2."],["Outputs of reducer2 are prefixed with a specified string to differentiate them from reducer1's outputs."],["Input handling for the combined reducer is configurable: if `sharedInputs` is true, both reducers utilize the same inputs; otherwise, the combined reducer's inputs are those of reducer1 followed by those of reducer2."],["It can be invoked using `Reducer.combine()` method, accepting reducer2, output prefix, and shared input preference as arguments."]]],[]]