mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-10-25 20:55:02 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
1 parent
ef74383349
commit
19c8d69bd8
1499 files changed
+53633
-89
No files matched your search
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @name arrayUnzip
|
||||
* @description Splits a single [K, V][] into [K[], V[]]
|
||||
*/
|
||||
export 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