@ephox/katamari
Advanced tools
Comparing version 2.3.4 to 2.3.5
@@ -6,3 +6,3 @@ /** Creates an object from parallel arrays of key/value pairs. | ||
*/ | ||
export declare const zipToObject: <K extends string | number, V>(keys: K[], values: V[]) => Record<string | number, V>; | ||
export declare const zipToObject: <V>(keys: string[] | number[], values: V[]) => Record<string, V>; | ||
/** zipToTuples :: ([key], [value]) -> [{k: key1, v: value1}, {k: key2, v: value2} ...] */ | ||
@@ -9,0 +9,0 @@ export declare const zipToTuples: <K, V>(keys: K[], values: V[]) => { |
{ | ||
"name": "@ephox/katamari", | ||
"version": "2.3.4", | ||
"version": "2.3.5", | ||
"description": "Basic data type library", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -6,4 +6,4 @@ /** Creates an object from parallel arrays of key/value pairs. | ||
*/ | ||
export const zipToObject = function <K extends string | number, V>(keys: K[], values: V[]) { | ||
const r: Record<string | number, V | undefined> = {}; | ||
export const zipToObject = function <V>(keys: string[] | number[], values: V[]) { | ||
const r: Record<string, V | undefined> = {}; | ||
for (let i = 0; i < keys.length; i++) { | ||
@@ -10,0 +10,0 @@ r[keys[i]] = values[i]; |
Sorry, the diff of this file is not supported yet
795409