Skip to content

zipAll

zipAll(arrays, pad?) → array · Binary

Zip multiple arrays together, padding shorter arrays with null (or a specified value).

  • arrays (required): array of arrays to zip

  • pad (optional): padding value for shorter arrays

utlx
zipAll([[1, 2, 3], ["a", "b"]])          // [[1, "a"], [2, "b"], [3, null]]

Released under AGPL-3.0.