Ember array chunk


#1

Hi, I’m trying to split Ember array in chunks (just like for example php arrray_chunk(arr, 2) do) I used some custom function to do this My solution jsbin , is there any better way to do this? Maybe extend Ember.array? Your advices, review will be appreciated!


#2

Don’t think there’s any ember specific solution but there’s some good ones at http://stackoverflow.com/questions/8495687/split-array-into-chunks


#3

I didnt use it, but maybe the GroupableMixin is something for you:

http://emberaddons.com/