Details

    • Type: Technical Task
    • Status: Closed
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0 M6
    • Labels:
      None

      Description

      We can migrate the A.Array.reduce(arr, init, fn) method to using arr.reduce(fn, init).

      Special considerations:
      1. The initial value passed in is different between the two methods. The A.Array.reduce version has the initial value before the callback, but the native one has the initial value after the callback.
      2. The native form does not support passing a context object as the last parameter, while the A.Array.reduce version does. Make sure that if any calls are using this feature, that you instead bind the context to the method.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 29 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 M6