UNPKG

286 BJavaScriptView Raw
1// Copyright 2017-2022 @polkadot/util authors & contributors
2// SPDX-License-Identifier: Apache-2.0
3export function arrayZip(keys, values) {
4 const result = new Array(keys.length);
5
6 for (let i = 0; i < keys.length; i++) {
7 result[i] = [keys[i], values[i]];
8 }
9
10 return result;
11}
\No newline at end of file