You found a bug! We've classified it as EXTJSIV-6972 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    794
    Vote Rating
    29
    LesJ will become famous soon enough LesJ will become famous soon enough

      2  

    Default Ext.Array.sum improvement

    Ext.Array.sum improvement


    The Ext.Array.sum polyfill method should be very similar to the Array.reduce method.

    I suggested adding the callback and initialValue params and delegating to Array.reduce when possible.

    Another option is to leave Ext.Array.sum as is and add the new Ext.Array.reduce method.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,107
    Vote Rating
    453
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Pushed as a story. Thank you!
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    794
    Vote Rating
    29
    LesJ will become famous soon enough LesJ will become famous soon enough

      0  

    Default


    I was searching what Google did... and if they implemented Array.reduce...

    I found this funny inline comment:

    "We're google; we can't have "map" without "reduce" can we?"

    Link