Guest User

Untitled

a guest
Aug 29th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. a= [{A:'A'},
  2. {B:'B'},
  3. {C:'C'},
  4. {D:'D'},
  5. {E:'E'},
  6. {F:'F'},
  7. {G:'G'},
  8. {H:'H'},
  9. {I:'I'}];
  10.  
  11. b= [{a:{A:'A'}, b:{B:'B'}},
  12. {c:{C:'C'}, d:{D:'D'}},
  13. {e:{E:'E'}, f:{F:'F'}},
  14. {g:{G:'G'}, h:{H:'H'}},
  15. {i:{I:'I'}}];
  16.  
  17. len = Math.ceil( a.length / parts); // округлить в бОльшую сторону
  18.  
  19. 0: {A:'A'}
  20. 1: {B:'B'}
  21. ..
Add Comment
Please, Sign In to add comment