Można obejśc ten brak poprzez wstawienie poniższego kodu na początku skryptu, co pozwala na użycie reduce z implementacjami, które nie wspierają tej funkcji.
You can work around this by inserting the following code at the beginning of your scripts, allowing use of reduce in implementations which do not natively support it.
reduce() - wywołuje funkcję dla każdego elementu z tablicy i zachowuje wyniki z poprzednich wywołań.
reduce() - runs a function on every item in the array and collects the results from previous calls.
20 Tym razem wartość zwrócona przez reduce będzie wynosiła 20.
The value returned by reduceRight this time would be, of course, 20.
Przykład: Spłaszczenie reduce zostało dodane do standardu ECMA-262 w edycji piątej i jako takie może nie występować we wszystkich implementacji standardu.
Polyfill reduceRight was added to the ECMA-262 standard in the 5th edition; as such it may not be present in all implementations of the standard.
Metoda reduce() wywołuje funkcję względem wartości przyrostowej z każdego wywołania i kolejnego elementu tablicy (od lewej do prawej) w celu sprowadzenia tej tablicy do pojedynczej wartości.
The reduce() method applies a function against an accumulator and each value of the typed array (from left-to-right) has to reduce it to a single value.
Metoda reduce() wywołuje funkcję względem wartości przyrostowej z każdego wywołania i kolejnego elementu tablicy (od lewej do prawej) w celu sprowadzenia tej tablicy do pojedynczej wartości.
The reduce() method applies a function against an accumulator and each value of the array (from left-to-right) to reduce it to a single value.
Metoda reduce() wywołuje funkcję względem wartości przyrostowej z każdego wywołania i kolejnego elementu tablicy (od lewej do prawej) w celu sprowadzenia tej tablicy do pojedynczej wartości.
Summary The reduce() method applies a function against an accumulator and each value of the array (from left-to-right) has to reduce it to a single value.
Uważamy, że biura i inne przestrzenie komercyjne powinny być tworzone zgodnie z ideą 3R - reduce, reuse, recycle (redukuj, użyj ponownie, zutylizuj).
We believe that offices and other commercial spaces should be created based on the 3R model - reduce, reuse and recycle.
Metoda reduce() wywołuje funkcję względem wartości przyrostowej z każdego wywołania i kolejnego elementu tablicy (od lewej do prawej) w celu sprowadzenia tej tablicy do pojedynczej wartości.
The reduce() method applies a function against an accumulator and each value of the array (from left-to-right) to reduce it to a single value. Syntax
10 Wartość zwrócona ostatecznie przez reduce będzie tą z ostatniego wywołania funcji callback (10).
The value returned by reduce would be that of the last callback invocation (10).
[0, 1, 2, 3, 4] 20 Tym razem wartość zwrócona przez reduce będzie wynosiła 20.
[0,1,2,3,4] 20 The value returned by reduce this time would be, of course, 20.
ELiS DUO wpisuje się w światową ideę 3R: reduce (zminimalizowanie zużycia materiałów i energii), recycle i reuse (wykorzystanie tworzyw sztucznych do produkcji wielu podzespołów pozwala na powtórne ich wykorzystanie do wytworzenia nowych elementów).
ELiS DUO follows the 3R global idea: reduce (minimizing the use of materials and energy), recycle and reuse (using the plastics in the production of many subassemblies allows to reuse them in order to create new elements).
W roku 2000 Rottnest wygrała konkurs "3R" (reduce, recycle and reuse - zmniejszyć (ilość odpadów), przetworzyć i użyć ponownie).
In 2000 the island won the 3R awards (reduce, reuse and recycle).