Guest User

Untitled

a guest
Nov 18th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. let zxc = _.zipWith([1, 2, 6], [5, 3, 4], (a,b) => {
  2. let arr = [];
  3. for(let i = 0; i<a; i++){
  4. arr.push(b);
  5. }
  6. return arr;
  7. });
  8.  
  9. console.log(_.flatten(zxc));
Add Comment
Please, Sign In to add comment