mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-23 01:28:01 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.arrayUnzip = arrayUnzip;
|
||||
/**
|
||||
* @name arrayUnzip
|
||||
* @description Splits a single [K, V][] into [K[], V[]]
|
||||
*/
|
||||
function arrayUnzip(entries) {
|
||||
const count = entries.length;
|
||||
const keys = new Array(count);
|
||||
const values = new Array(count);
|
||||
for (let i = 0; i < count; i++) {
|
||||
[keys[i], values[i]] = entries[i];
|
||||
}
|
||||
return [keys, values];
|
||||
}
|
||||
Reference in New Issue
Block a user