News for hackers. Stuff that matters.
Re:Zip Function Solution: Haskell, Elixir, JavaScript, Pytho... by chrisco255 on Thursday November 10, 2022 @06:12AM (#33544887)

  function zip(arr_a, arr_b) {
    const len = arr_a.length < arr_b.length ? arr_a.length : arr_b.length;

    return arr_a.slice(0, len).map((el, idx) => [el, arr_b[idx]]);
  }

There are no comments on this comment yet.