can.reduce for any array-like object