UNPKG

389 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.arrayZip = arrayZip;
7
8// Copyright 2017-2022 @polkadot/util authors & contributors
9// SPDX-License-Identifier: Apache-2.0
10function arrayZip(keys, values) {
11 const result = new Array(keys.length);
12
13 for (let i = 0; i < keys.length; i++) {
14 result[i] = [keys[i], values[i]];
15 }
16
17 return result;
18}
\No newline at end of file